Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Latest commit

Β 

History

History
85 lines (59 loc) Β· 1.33 KB

File metadata and controls

85 lines (59 loc) Β· 1.33 KB

Backup macOS

Splitted into several backups, because some parts take longer than others.

~/dev

Filters to include/exclude files/folders are in ~/dev/.duplicacy/filters

Backup

cd ~/dev
duplicacy init dev smb://patwoz@syno.camel-yo.ts.net/Root/Backups/dev
duplicacy backup -t first -stats -threads 10

Restore

cd ~/dev
# get latest revision
duplicacy list
# check whats missing
duplicacy diff

# get everything
duplicacy restore -r <revision> ""

# get only Personal folder
duplicacy restore -r <revision> "Personal/*"

# or other
duplicacy restore -r <revision> "piparo.tech/*"

Miscellaneous

Important files

~/.zshrc_secret

Filters to include/exclude files/folders are in ~/.duplicacy/filters

Backup

cd ~/
duplicacy init -e home smb://patwoz@syno.camel-yo.ts.net/Root/Backups/home
# enter encryption password
duplicacy backup -t first -stats -threads 10

Restore

cd ~/
# get latest revision
duplicacy list
# check whats missing
duplicacy diff

# get everything
duplicacy restore -r <revision> ""

# get only .ssh/
duplicacy restore -r <revision> ".ssh/*"

Debug

Validate include/exclude filters

cd ~/dev
# or
cd ~/

duplicacy -d -log backup -enum-only > log.txt

# PATTERN_INCLUDE means the folder/file will be included
# PATTERN_EXCLUDE the opposite