ansible/server/scripts/make_btrfs_snapshots.sh

12 lines
346 B
Bash
Raw Normal View History

2021-09-11 10:18:47 +02:00
#!/bin/bash
BASE=/media/passport4/
TARGET=/media/passport4/snapshots
DATE=`date +%F`
btrfs subvolume snapshot -r $BASE/main_data $TARGET/main_data/$DATE
btrfs subvolume snapshot -r $BASE/films_and_software $TARGET/films_and_software/$DATE
btrfs subvolume snapshot -r $BASE/docker_volume_backup $TARGET/docker_volume_backup/$DATE