less than 100 lines :)
This commit is contained in:
1 parent
fcf6f6008d
commit
087983bd4a
1 file changed
-3
@@ -25,7 +25,6 @@ main() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
# Helper functions
|
|
||||||
lxc() { command "$cmd" "$@"; }
|
lxc() { command "$cmd" "$@"; }
|
||||||
list_vms() { lxc list -c n -f csv; }
|
list_vms() { lxc list -c n -f csv; }
|
||||||
|
|
||||||
@@ -55,7 +54,6 @@ Options:
|
|||||||
-x Compression algorithm (e.g. gzip, zstd, none)
|
-x Compression algorithm (e.g. gzip, zstd, none)
|
||||||
-c Cleanup old backups keeping a set number (default: 2)
|
-c Cleanup old backups keeping a set number (default: 2)
|
||||||
-h Show this message
|
-h Show this message
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
@@ -73,7 +71,6 @@ start_backup() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local vm_dir="${backup_dir}/${vm}"
|
local vm_dir="${backup_dir}/${vm}"
|
||||||
|
|
||||||
local backup_name
|
local backup_name
|
||||||
backup_name="${vm}_$(date +"%Y-%m-%d_%H-%M-%S").tar${ext}"
|
backup_name="${vm}_$(date +"%Y-%m-%d_%H-%M-%S").tar${ext}"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user