Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Magic bash backup script, read more here

You can create a new script to store your settings

#!/bin/bash

SOURCE=$HOME/Documents/Work
SSH_HOST="ruiabreu@atnog"
SSH_PATH="/home/ruiabreu/backups/"

. backup.sh

You can also use this script to backup to another location on your hardrive. Here is my example script, that accepts the destination as an argument.

#!/bin/bash

if [ "$#" != "1" ]; then
	echo "Usage: backup-home /dst/base/path"
	exit 1
fi

SOURCE=$HOME
DSTPATH=$1

. backup.sh

About

A magic bash script I use to backup my laptop

Resources

Releases

No releases published

Packages

No packages published

Languages