diff options
author | Joursoir <chat@joursoir.net> | 2023-10-14 20:01:00 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2023-11-04 16:45:05 +0300 |
commit | ab6b1d71e93967aa1d00e0026cb75ac2ffbfc11a (patch) | |
tree | d5de64928ed59dcd0e01fbbbd7c0626d42c16693 /bin/do-backup.sh | |
parent | 65244696d0a0676fd8a814cc1bbad584a76798ac (diff) | |
download | dotfiles-ab6b1d71e93967aa1d00e0026cb75ac2ffbfc11a.tar.gz dotfiles-ab6b1d71e93967aa1d00e0026cb75ac2ffbfc11a.tar.bz2 dotfiles-ab6b1d71e93967aa1d00e0026cb75ac2ffbfc11a.zip |
rename 'bin' dir to 'scripts'
Diffstat (limited to 'bin/do-backup.sh')
-rwxr-xr-x | bin/do-backup.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bin/do-backup.sh b/bin/do-backup.sh deleted file mode 100755 index 02350e5..0000000 --- a/bin/do-backup.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash -# -# Dependencies: 'rsync' - -backupdir=/mnt/storage/backups -logdir=$backupdir/logs -originserver="user@example.com" -tdate=$(date +%Y%m%d) - -# Rsync options: -# a = archive mode (symbolic links, attributes, permissions, -# ownerships, etc. are preserved in the transfer) -# z = compress file data during the transfer -# v = increase verbosity -# h = output numbers in a human-readable format -# -# A trailing *slash* on the _source_ changes this behavior to avoid -# creating an additional directory level at the _destination_. -mkdir -p $backupdir/$tdate && \ -rsync -azvh --progress $originserver:/ \ - --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} \ - "$backupdir/$tdate" \ - --log-file="$logdir/$tdate.log" |