From c9406c46f9181a1e326963e0a18fa23475500b7c Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sat, 24 Apr 2021 19:01:12 +0200 Subject: [PATCH] Added sudo, changed rsync command --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9f36c92..e14b861 100644 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ ###### CONFIG SECTION ###### # Define basic tools to install -TOOLS="vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop lshw smartmontools nvme-cli lsscsi sysstat zfs-auto-snapshot htop mc rpl" +TOOLS="sudo vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop lshw smartmontools nvme-cli lsscsi sysstat zfs-auto-snapshot htop mc rpl" # Define target dataset for backup of /etc # IMPORTANT NOTE: Don't type in the leading /, this will be set where needed @@ -151,4 +151,4 @@ if [ $? -ne 0 ] zfs create $PVE_CONF_BACKUP_TARGET fi -echo "$PVE_CONF_BACKUP_CRON_TIMER root rsync -rtvupo /etc /$PVE_CONF_BACKUP_TARGET" > /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 \ No newline at end of file