Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: my excludes, necessary / useful #64

Open
kversl opened this issue Feb 1, 2021 · 1 comment
Open

suggestion: my excludes, necessary / useful #64

kversl opened this issue Feb 1, 2021 · 1 comment

Comments

@kversl
Copy link

kversl commented Feb 1, 2021

To successfully complete a timemachine backup of my Ubuntu home directory, I had to exclude certain special files which can't be backupped. I maintain an --exclude-from file, to get my backup done:

necessary excludes to finish a backup of my Ubuntu desktop's home directory without error
[$USER]/.dbus
*.sock

other excludes, to make it nicer
/Trash/
/.Trash
/
[$USER]/.cache/
**/*cache/
**/*Cache/
**/*CACHE/
lost+found

other excludes, especially because I have netatalk running:
[$USER]/.AppleDB/
[$USER]/.AppleDesktop/
**/.AppleDouble/
[$USER]/Network\ Trash\ Folder/
/Temporary\ Items/
.DS_Store

remark:
Not sure if a pattern like [$USER] will work. In my case I have simply written the literal name of my SOURCE directory.

@TylerRick
Copy link

Looks like you can do this already, by adding your custom rsync options to the end...

timemachine [-vd]  <source> <dest> -- --exclude-from=excludes

... though I would like to propose that we automatically include the -F command:

       -F     The -F option is a shorthand for adding two --filter rules to your command.  The first time it is used is a shorthand for this rule:

                  --filter='dir-merge /.rsync-filter'

              This tells rsync to look for per-directory .rsync-filter files that have been sprinkled through the hierarchy and use their rules to filter the files in the transfer. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants