mirror of
https://github.com/FliegendeWurst/borg-homedir-excludes.git
synced 2024-11-21 20:34:57 +00:00
Update readme
This commit is contained in:
parent
6af19baae5
commit
b01fa9f729
31
README.md
31
README.md
@ -1,32 +1,9 @@
|
||||
# rsync-homedir-excludes
|
||||
# borg-homedir-excludes (previously rsync-homedir-excludes)
|
||||
|
||||
## Usage:
|
||||
|
||||
# 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
|
||||
Edit the file rsync-homedir-excludes.txt to suit your home directory.
|
||||
|
||||
# edit the file /var/tmp/ignorelist to your needs
|
||||
nano /var/tmp/ignorelist
|
||||
Then pass the file to [borg](https://borgbackup.readthedocs.io/):
|
||||
|
||||
# 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
|
||||
|
||||
You can edit the ignorelist file before execution as it serves you well:
|
||||
|
||||
- At the start, there is a section with directories, probably not worth a backup. Uncomment those lines to exclude them as well.
|
||||
|
||||
- All lines starting with a `#` are being ignored.
|
||||
|
||||
- The syntax doesn't support comments at the end of a line yet.
|
||||
$ borg --exclude-from path/to/rsync-homedir-excludes.txt
|
||||
|
Loading…
Reference in New Issue
Block a user