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

Exclude dir, symlinks #63

Open
jago25 opened this issue Dec 10, 2013 · 5 comments
Open

Exclude dir, symlinks #63

jago25 opened this issue Dec 10, 2013 · 5 comments
Labels

Comments

@jago25
Copy link

jago25 commented Dec 10, 2013

This is less an issue and more about trying to figure out how to use Cyphertite, sorry about that.

Let's say I want to backup my home directory but exclude some big unnecessary cache directories within it such as ~/.cache and ~/.tmp ...how would I do that?

Can I do it by making a dir full of symlinks (hard or soft) to all the directories I want to backup?

@dajohi
Copy link
Contributor

dajohi commented Dec 10, 2013

I am assuming you are not using Windows.

Checkout the -E parameter for cyphertite, which points to a file that contains a list to exclude.

$ cat exclude.txt
home/user/.cache
home/user/.tmp

$ cyphertite -E exclude.txt -cf homedir.ct /home/user

@dajohi
Copy link
Contributor

dajohi commented Dec 10, 2013

oops

$ cat exclude.txt
home/user/.cache/*
home/user/.tmp/*

@sysfu
Copy link

sysfu commented Dec 19, 2014

Backblaze excludes certain 'junk' directories like cache, tmp, operating system files, etc by default.

Assuming the Windows user base is on the whole not technically inclined, this might make for a sane default configuration in the Windows Cyphertite client as well.

@tukoz
Copy link

tukoz commented Feb 26, 2015

Testing cyphertite 2.0.4 on Linux.
cyphertite -E <path/to/excludes> -cHf <mdname.ct>
cat excludes
.cache/*
*cache/

@tukoz
Copy link

tukoz commented Feb 26, 2015

Testing cyphertite 2.0.4 on Linux.
Have some trouble left to find Cyphertite's appropriate exclusion syntax (coming from rsync)
$ man cyphertite

-E pattern_file
         ... The patterns, one per line are interpreted as glob patterns unless the -r flag is specified.

Maybe that's a bit too vague. Backing up with: $ cyphertite -E <path/to/excludes> -cHf <mdname.ct>

$ cat excludes

*.cache/*
cache/*
*.opera/*cache/
*.dropbox*
Thumbs.db
agedu.dat

Looks like I'm good for some of the dirs :

dropbox : none :)

cache :

../../.cache/<empty>   # :)
../../.opera/application_cache  # NONE :)
../../.zotero-ft-cache #  :)
../../Torcache.net.xml  # :)
../../..moniques_cachees_de_l_Occident.pdf   # :)

But why

../../libreoffice/4/user/uno_packages/cache/<full_content>  # :(
Thumbs.db
../../Thumbs.db
../../agedu.dat

Also tried with eg:

**/Thumbs.db
- Thumbs.db

"Excluded" files are always backed up (and restored).

So what syntax do you use to exclude files globaly? ie without having to enter full path to each ones ;)

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

No branches or pull requests

5 participants