aports/cron/snapshot-postgresql/daily

4 lines
193 B
Plaintext
Raw Normal View History

2020-12-27 13:04:43 +00:00
#!/bin/sh
2020-12-29 19:14:36 +00:00
/sbin/btrfs subvolume delete /var/lib/postgresql/redxen_snapshots/`date +"%u"`
/sbin/btrfs subvolume snapshot -r /var/lib/postgresql /var/lib/postgresql/redxen_snapshots/`date +"%u"`