diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2171d0a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*local.txt diff --git a/README.md b/README.md index 8a26753..75e8bb7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,27 @@ #Usage: - download to `/var/tmp/ignorelist` - rsync -aP --exclude-from=/var/tmp/ignorelist /home/$USER/ /media/$USER/linuxbackup/home/$USER/ + # download to `/var/tmp/ignorelist` + wget https://raw.githubusercontent.com/rubo77/rsync-homedir-excludes/master/rsync-homedir-excludes.txt -O /var/tmp/ignorelist + # or copy to `/var/tmp/ignorelist` + cp ./rsync-homedir-excludes.txt /var/tmp/ignorelist -At the start, there is a section with directories, probably not worth a backup. Uncomment those lines to exclude them as well. \ No newline at end of file + # edit the file /var/tmp/ignorelist to your needs + nano /var/tmp/ignorelist + + # define a Backup directory, for example: + BACKUPDIR=/media/$USER/linuxbackup/home/$USER/ + BACKUPDIR=/media/workspace/home/$USER/ + + # first append the ā€œ-nā€ parameter rsync will simulate the operation. you should use this before you start: + rsync -naP --exclude-from=/var/tmp/ignorelist /home/$USER/ $BACKUPDIR + + #check for permission denied errors in your homedir: + rsync -naP --exclude-from=/var/tmp/ignorelist /home/$USER/ $BACKUPDIR|grep denied + + # if it is all fine, start your backup with + rsync -aP --exclude-from=/var/tmp/ignorelist /home/$USER/ $BACKUPDIR + +At the start, there is a section with directories, probably not worth a backup. Uncomment those lines to exclude them as well. + +If you \ No newline at end of file