mirror of
https://github.com/FliegendeWurst/borg-homedir-excludes.git
synced 2024-11-25 06:04:58 +00:00
README: added info how to test beforehand
This commit is contained in:
parent
d29910d308
commit
c388475b1e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*local.txt
|
26
README.md
26
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.
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user