12 lines
346 B
Bash
12 lines
346 B
Bash
|
#!/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
|
||
|
|