mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-11-07 19:31:58 +01:00
Fix backup script
This commit is contained in:
parent
2164f6d2ce
commit
9fa103d8ae
@ -180,7 +180,7 @@ prune () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "\$(date) Starting samba-ad-dc online backup"
|
echo "\$(date) Starting samba-ad-dc online backup"
|
||||||
if echo -e "${LXC_ADMIN_PASS}" | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then
|
if echo -e '${ZMB_ADMIN_PASS}' | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then
|
||||||
echo "\$(date) Finished samba-ad-dc online backup. Cleaning up old online backups..."
|
echo "\$(date) Finished samba-ad-dc online backup. Cleaning up old online backups..."
|
||||||
prune online
|
prune online
|
||||||
else
|
else
|
||||||
|
@ -158,7 +158,7 @@ prune () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
echo "\$(date) Starting samba-ad-dc online backup"
|
echo "\$(date) Starting samba-ad-dc online backup"
|
||||||
if echo -e "${LXC_ADMIN_PASS}" | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then
|
if echo -e '${ZMB_ADMIN_PASS}' | samba-tool domain backup online --targetdir=/${LXC_SHAREFS_MOUNTPOINT}/online --server=${LXC_HOSTNAME}.${LXC_DOMAIN} -UAdministrator ; then
|
||||||
echo "\$(date) Finished samba-ad-dc online backup. Cleaning up old online backups..."
|
echo "\$(date) Finished samba-ad-dc online backup. Cleaning up old online backups..."
|
||||||
prune online
|
prune online
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user