Compare commits

..

No commits in common. "25f04e792b682191e66fb155441cff1d006dae6f" and "87facda911109e8537a9714720a54c793456170d" have entirely different histories.

1 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,4 @@
#!/usr/bin/env bash
until [ ! -e /srv/minecraft/backups/`date --iso`.$i.tar.xz ]; do
(( i++ ))
done
tar -caf /srv/minecraft/backups/`date --iso`.$i.tar.xz -g /srv/minecraft/backups/`date --iso`.snar /srv/minecraft/server/
rm /srv/minecraft/backups/`date --iso --date='14 days ago'`* || echo "no old backups to delete!"
tar -caf /srv/minecraft/backups/`date --iso`.tar.xz /srv/minecraft/server/
rm /srv/minecraft/backups/`date --iso --date='14 days ago'`.tar.xz || echo "no old backups to delete!"