Skip to content

Backup using config and glob #1194

Answered by kapitainsky
enboig asked this question in Q&A
Aug 9, 2024 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

As I needed similar exclusions I did it and tested. For your folders please see working example.

I use glob file but of course you can include all in toml file if you want.

My toml file contains:

[backup]
glob-file = ["./rustic.glob"]

[[backup.sources]]
source = "/"

And here you are glob file content:

!*

/backup
/backup/**/*

/etc
/etc/**/*

/root
/root/scripts
/root/scripts/**/*

/home
/home/*/
/home/*/Documents
/home/*/Documents/**/*
!/home/*/Documents/temp

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@enboig
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@enboig
Comment options

Answer selected by aawsome
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants