Update btrfs items
This commit is contained in:
parent
39b0c57266
commit
7e6dd3a8d6
4 changed files with 6 additions and 6 deletions
|
@ -126,9 +126,9 @@
|
||||||
|
|
||||||
# BTRFS Related
|
# BTRFS Related
|
||||||
clean-boot-snapshots = ''
|
clean-boot-snapshots = ''
|
||||||
echo -e "Deleting boot snapshots...."
|
echo -en "Deleting boot snapshots...."
|
||||||
for i in $(sudo snapper -c root list | grep boot | awk {'print $1'});
|
for i in $(sudo snapper -c root list | grep boot | awk {'print $1'});
|
||||||
echo -e " $i,"
|
echo -en " $i,"
|
||||||
sudo snapper -c root delete $i;
|
sudo snapper -c root delete $i;
|
||||||
end
|
end
|
||||||
echo -e " done."
|
echo -e " done."
|
||||||
|
|
|
@ -39,7 +39,7 @@ BASE_DEST_PATH="/volume1/BTRFS_Receives/`hostname`/${SNAPPER_CONFIG}"
|
||||||
DEST_PATH="/volume1/BTRFS_Receives/`hostname`/${SNAPPER_CONFIG}/${NEW_SNAPSHOT}"
|
DEST_PATH="/volume1/BTRFS_Receives/`hostname`/${SNAPPER_CONFIG}/${NEW_SNAPSHOT}"
|
||||||
STATE_FILE="/var/lib/snapper-backup-${SNAPPER_CONFIG}.state"
|
STATE_FILE="/var/lib/snapper-backup-${SNAPPER_CONFIG}.state"
|
||||||
LOG_FILE="/var/log/snapper-backup-${SNAPPER_CONFIG}.log"
|
LOG_FILE="/var/log/snapper-backup-${SNAPPER_CONFIG}.log"
|
||||||
KEEP_SNAPSHOTS=5
|
KEEP_SNAPSHOTS=14
|
||||||
|
|
||||||
# Get latest successful transfer number from snapshots with backup description
|
# Get latest successful transfer number from snapshots with backup description
|
||||||
LAST_TRANSFERRED=$(cat "$STATE_FILE" 2>/dev/null || echo "")
|
LAST_TRANSFERRED=$(cat "$STATE_FILE" 2>/dev/null || echo "")
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
services.cron = {
|
services.cron = {
|
||||||
systemCronJobs = [
|
systemCronJobs = [
|
||||||
# Back up Local-Storage to NFS Storage
|
# Back up Local-Storage to NFS Storage
|
||||||
"0 0 * * 3 albert sudo btrfs-backup root"
|
"0 17 * * * albert sudo btrfs-backup root"
|
||||||
"0 2 * * 3 albert sudo btrfs-backup nix"
|
"0 17 * * * albert sudo btrfs-backup nix"
|
||||||
# "0 4 * * 3 albert sudo btrfs-backup home"
|
# "0 4 * * 3 albert sudo btrfs-backup home"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 26552d8bade6fa39188ebf68e9ffa1a8dcd75108
|
Subproject commit 8ed82c9afaac6359cf4603196f7a5bd4b399a4b5
|
Loading…
Reference in a new issue