Compare commits
No commits in common. "25f04e792b682191e66fb155441cff1d006dae6f" and "87facda911109e8537a9714720a54c793456170d" have entirely different histories.
25f04e792b
...
87facda911
|
@ -1,6 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
until [ ! -e /srv/minecraft/backups/`date --iso`.$i.tar.xz ]; do
|
tar -caf /srv/minecraft/backups/`date --iso`.tar.xz /srv/minecraft/server/
|
||||||
(( i++ ))
|
rm /srv/minecraft/backups/`date --iso --date='14 days ago'`.tar.xz || echo "no old backups to delete!"
|
||||||
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!"
|
|
||||||
|
|
Loading…
Reference in New Issue