mirror of
https://github.com/bashclub/proxmox-zfs-postinstall.git
synced 2024-11-07 18:31:58 +01:00
Renamed inastall.sh, small fixes
This commit is contained in:
parent
9c048b1dc0
commit
ce79747405
@ -111,8 +111,8 @@ done
|
||||
# IMPORTANT NOTE: Don't type in the leading /, this will be set where needed
|
||||
PVE_CONF_BACKUP_TARGET=rpool/pveconf
|
||||
|
||||
# Define timer for your backup cronjob (default: every 15 minutes)
|
||||
PVE_CONF_BACKUP_CRON_TIMER="*/15 * * * *"
|
||||
# Define timer for your backup cronjob (default: every 15 minutes fron 3 through 59)
|
||||
PVE_CONF_BACKUP_CRON_TIMER="3/15 * * * *"
|
||||
|
||||
|
||||
|
||||
@ -154,9 +154,9 @@ EOF
|
||||
update-initramfs -u -k all
|
||||
|
||||
# create backup jobs of /etc
|
||||
zfs list $PVE_CONF_BACKUP_TARGET
|
||||
zfs list $PVE_CONF_BACKUP_TARGET > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
zfs create $PVE_CONF_BACKUP_TARGET
|
||||
fi
|
||||
|
||||
echo "$PVE_CONF_BACKUP_CRON_TIMER root rsync -vhab --delete /etc /$PVE_CONF_BACKUP_TARGET > /$PVE_CONF_BACKUP_TARGET/pve-conf-backup.log" > /etc/cron.d/pve-conf-backup
|
||||
echo "$PVE_CONF_BACKUP_CRON_TIMER root rsync -vhab --delete /etc /$PVE_CONF_BACKUP_TARGET > /$PVE_CONF_BACKUP_TARGET/pve-conf-backup.log" > /etc/cron.d/pve-conf-backup
|
Loading…
Reference in New Issue
Block a user