-
-
Notifications
You must be signed in to change notification settings - Fork 741
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8379 from ThomasWaldmann/backup-series
backup series, fixes #7930
- Loading branch information
Showing
25 changed files
with
372 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,18 +23,18 @@ Examples | |
# /home/<one directory>/.thumbnails is excluded, not /home/*/*/.thumbnails etc.) | ||
$ borg create my-files /home --exclude 'sh:home/*/.thumbnails' | ||
|
||
# Backup the root filesystem into an archive named "root-YYYY-MM-DD" | ||
# Backup the root filesystem into an archive named "root-archive" | ||
# use zlib compression (good, but slow) - default is lz4 (fast, low compression ratio) | ||
$ borg create -C zlib,6 --one-file-system root-{now:%Y-%m-%d} / | ||
$ borg create -C zlib,6 --one-file-system root-archive / | ||
|
||
# Backup into an archive name like FQDN-root-TIMESTAMP | ||
$ borg create '{fqdn}-root-{now}' / | ||
# Backup into an archive name like FQDN-root | ||
$ borg create '{fqdn}-root' / | ||
|
||
# Backup a remote host locally ("pull" style) using sshfs | ||
$ mkdir sshfs-mount | ||
$ sshfs [email protected]:/ sshfs-mount | ||
$ cd sshfs-mount | ||
$ borg create example.com-root-{now:%Y-%m-%d} . | ||
$ borg create example.com-root . | ||
$ cd .. | ||
$ fusermount -u sshfs-mount | ||
|
||
|
@@ -63,17 +63,13 @@ Examples | |
# Only compress compressible data with lzma,N (N = 0..9) | ||
$ borg create --compression auto,lzma,N arch ~ | ||
|
||
# Use short hostname, user name and current time in archive name | ||
$ borg create '{hostname}-{user}-{now}' ~ | ||
# Similar, use the same datetime format that is default as of borg 1.1 | ||
$ borg create '{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S}' ~ | ||
# As above, but add nanoseconds | ||
$ borg create '{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S.%f}' ~ | ||
# Use short hostname and user name as archive name | ||
$ borg create '{hostname}-{user}' ~ | ||
|
||
# Backing up relative paths by moving into the correct directory first | ||
$ cd /home/user/Documents | ||
# The root directory of the archive will be "projectA" | ||
$ borg create 'daily-projectA-{now:%Y-%m-%d}' projectA | ||
$ borg create 'daily-projectA' projectA | ||
|
||
# Use external command to determine files to archive | ||
# Use --paths-from-stdin with find to back up only files less than 1MB in size | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.