mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 18:19:56 +01:00
Fix folder check
This commit is contained in:
parent
b9438d411d
commit
718bf213b1
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -uo pipefail
|
||||||
|
|
||||||
# Backup folder
|
# Backup folder
|
||||||
BACKUP_MAIN="$HOME/backups"
|
BACKUP_MAIN="$HOME/backups"
|
||||||
@ -14,7 +14,7 @@ if [ -d "/etc/iptables/" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy LXC confs
|
# Copy LXC confs
|
||||||
if [ -h "/etc/pve/lxc/" ]; then
|
if [ -e "/etc/pve/lxc/" ]; then
|
||||||
mkdir -p $BACKUP_MAIN/lxc
|
mkdir -p $BACKUP_MAIN/lxc
|
||||||
rm $BACKUP_MAIN/lxc/*.conf
|
rm $BACKUP_MAIN/lxc/*.conf
|
||||||
sudo cp -R /etc/pve/lxc/* $BACKUP_MAIN/lxc/
|
sudo cp -R /etc/pve/lxc/* $BACKUP_MAIN/lxc/
|
||||||
|
Loading…
Reference in New Issue
Block a user