Last active 2 weeks ago

backup_site.sh Raw
1#!/bin/bash
2
3cd /srv/http/
4FILENAME="user333.sweeux.org-`date '+%s'`.tar"
5
6tar -cf ${FILENAME} user333.sweeux.org/
7chown user ${FILENAME}
8zstd --rm -3 ${FILENAME}
9
10chown user ${FILENAME}.zst
11mv ${FILENAME}.zst /mnt/sda/site-backups/
12
note.md Raw

backup_site.sh is located in /root/

recompress.sh is located in /mnt/sda/site-backups/

recompress.sh Raw
1#!/bin/sh
2
3zstd --rm -d *.tar.zst
4xz -ze9vT2 *.tar
5