lvm-xfs/backup-restore.sh

raw link view readme
1
2 for n in $(seq 10); do echo $n > /var/log/mongologs/$n.txt; done
3
4 mkdir -p /var/backup/logs
5
6 xfsdump -l 0 -L taco -M burrito -f /var/backup/logs/mongologs.xfs.backup /var/log/mongologs
7
8
9 xfsrestore -I
10
11 rm -f /var/log/mongologs/*
12
13 xfsrestore -f /var/backup/logs/mongologs.xfs.backup -L taco /var/log/mongologs
14