inital readme

This commit is contained in:
James Barnett
2016-10-01 07:46:12 -05:00
parent 371797ee9e
commit 53e666b364
2 changed files with 40 additions and 13 deletions

16
backup
View File

@@ -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"