inital readme
This commit is contained in:
16
backup
16
backup
@@ -7,18 +7,10 @@
|
||||
# snapshot created on your system since that will be used to determine the
|
||||
# difference for the next incremental snapshot.
|
||||
|
||||
# Can set the backup directory here, or in the snapper configuration file with
|
||||
# EXT_BACKUP_LOCATION
|
||||
declare -r description="latest incremental backup"
|
||||
|
||||
# You can set a snapper configuration to be excluded by setting EXT_BACKUP="no"
|
||||
# in its snapper configuration file.
|
||||
|
||||
#--------------------------------------------------------
|
||||
# Don't modify anything below here
|
||||
|
||||
set -e
|
||||
|
||||
declare -r description="latest incremental backup"
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
printf "Script must be run as root.\n"
|
||||
exit
|
||||
@@ -108,7 +100,7 @@ for x in $SNAPPER_CONFIGS; do
|
||||
|
||||
if [[ -z "$old_number" ]]; then
|
||||
|
||||
btrfs send "$new_snapshot" | btrfs receive "$backup_location"
|
||||
btrfs send "$new_snapshot" | btrfs receive "$backup_location" &>/dev/null
|
||||
|
||||
else
|
||||
|
||||
@@ -128,6 +120,4 @@ for x in $SNAPPER_CONFIGS; do
|
||||
|
||||
done
|
||||
|
||||
date > "$HOME"/.lastbackup
|
||||
|
||||
printf "Done!\n"
|
||||
|
||||
Reference in New Issue
Block a user