diff --git a/install.sh b/proxmox-zfs-postinstall.sh similarity index 97% rename from install.sh rename to proxmox-zfs-postinstall.sh index e0f383d..4da9eda 100644 --- a/install.sh +++ b/proxmox-zfs-postinstall.sh @@ -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 \ No newline at end of file +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