You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Marc Wäckerlin
04b1f1589a
|
6 years ago | |
---|---|---|
.. | ||
README.md | 6 years ago | |
lizardfs-snapshots.sh | 6 years ago |
README.md
LizardFS Snapshots And Backups
Creates a lizardfs snapshot of all sources to a destination. If
--del
is specified, only the given number of snapshots is kept,
older snapshots are deleted.
To create regular snapshots on a daily base, just run:
sudo cp lizardfs-snapshots.sh /etc/cron.daily/lizardfs-snapshots
If lizardfs-snapshots
is run from a cron.daily
, cron.hourly
,
cron. monthly
or cron.weekly
directory, the periodity is
automatically appended to the snapshot name, and the expiry is set
meaningfull. Otherwise the name is manual
and nothing is expired by
default.
You can create a configuration file, specifiying some defaults,
e.g. /etc/lizardfs-snapshots.conf
:
SOURCES=( /var/volumes/configs /var/volumes/volumes )
DESTINATION=/var/volumes/backup/snapshots
MONTHLY_DEL=13
Try: lizardfs-snapshots.sh --help