mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 459659acd00832093d02ebf46ead77f52c4e27ba
parent 4022b84783cde681ea0b3d085e09cfb5acd8a523
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat,  4 May 2019 18:10:25 +0200

change paths; use xz

Diffstat:
calendar-backup.sh | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/calendar-backup.sh b/calendar-backup.sh @@ -3,10 +3,12 @@ # run with chronic to avoid spam mkdir -p ~/backup/calendar -cd; cd ~/backup/ # required to have the right paths in the archive +cd; cd ~/backup/calendar/ # required to have the right paths in the archive # avoid "file changed as we read it" errors from tar cp -Rv calendar_current calendar_backup -tar zcf calendar/dump-`date +%s`.tgz calendar_backup +FILE="dump-`date +%s`" +tar cf ${FILE}.tar calendar_backup +xz ${FILE}.tar rm -Rvf calendar_backup