Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:linux:backup:full-rsync [2019/04/18 08:02] – [Full system rsync] alex | en:linux:backup:full-rsync [2020/04/29 06:04] (current) – [backup-system] alex |
|---|
| * ''target'' : system to back up, must be set to output of ''uname -n''. Used as a sanity check. | * ''target'' : system to back up, must be set to output of ''uname -n''. Used as a sanity check. |
| * ''source_dir'' : source directory. Set to ''/'' for full system backup. | * ''source_dir'' : source directory. Set to ''/'' for full system backup. |
| * ''target_dir'' : target directory. Set to the mountpoint of an external hard drive. Note: make sure that ''target_dir'' or a parent is included in ''exclude_dir'' otherwise rsync will recurse and your hard drive will get filled up completely. | * ''target_dir'' : target directory. Set to the mountpoint of an external hard drive or a remote server. Note: make sure that ''target_dir'' or a parent is included in ''exclude_dir'' otherwise rsync will recurse and your hard drive will get filled up completely. |
| * ''exclude_dir'' : excluded directories. Set these to temporary directories and other things you don't want backed up. | * ''exclude_dir'' : excluded directories. Set these to temporary directories and other things you don't want backed up. |
| * ''include_dir'' : included directories. Subfolders of excluded directories to include. | * ''include_dir'' : included directories. Subfolders of excluded directories to include. |
| |
| ====== backup-system ====== | ====== backup-system ====== |
| <code sh> | <code bash> |
| #!/bin/bash | #!/bin/bash |
| set -f | set -f |