Author Topic: Не могу сделать резервную копию текущего состояния zentyal 4.2  (Read 815 times)

AntonMosyagin

  • Zen Apprentice
  • *
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Всем привет! Подскажите почему не создается резервная копия zentyal? 
Code: [Select]
Произошли ошибки в Zentyal:
root command set -e rm '/var/lib/samba/private/sam.ldb.bak' rm '/var/lib/samba/private/share.ldb.bak' rm '/var/lib/samba/private/dns/sam.ldb.bak' rm '/var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/dns/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb.bak' rm '/var/lib/samba/private/idmap.ldb.bak' rm '/var/lib/samba/private/hklm.ldb.bak' rm '/var/lib/samba/private/secrets.ldb.bak' rm '/var/lib/samba/private/openchange.ldb.bak' rm '/var/lib/samba/private/privilege.ldb.bak' rm '/var/lib/samba/private/secrets.tdb.bak' rm '/var/lib/samba/private/dns/sam.ldb.d/metadata.tdb.bak' rm '/var/lib/samba/private/sam.ldb.d/metadata.tdb.bak' rm '/var/lib/samba/private/emsabp_tdb.tdb.bak' rm '/var/lib/samba/private/mapistore/mapistore_id_mapping_used.tdb.bak' rm '/var/lib/samba/private/randseed.tdb.bak' rm '/var/lib/samba/private/schannel_store.tdb.bak' rm '/var/lib/samba/private/netlogon_creds_cli.tdb.bak' tdbbackup '/var/lib/samba/private/privilege.ldb' chown 0:0 /var/lib/samba/private/privilege.ldb.bak chmod 0600 /var/lib/samba/private/privilege.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.bak tdbbackup '/var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/sam.ldb.d/DC=FORESTDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.d/DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:120 /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0660 /var/lib/samba/private/sam.ldb.d/DC=DOMAINDNSZONES,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.d/CN=CONFIGURATION,DC=KUZZSCHOOL,DC=EDU.ldb.bak tdbbackup '/var/lib/samba/private/secrets.ldb' chown 0:0 /var/lib/samba/private/secrets.ldb.bak chmod 0600 /var/lib/samba/private/secrets.ldb.bak tdbbackup '/var/lib/samba/private/share.ldb' chown 0:0 /var/lib/samba/private/share.ldb.bak chmod 0600 /var/lib/samba/private/share.ldb.bak tdbbackup '/var/lib/samba/private/hklm.ldb' chown 0:0 /var/lib/samba/private/hklm.ldb.bak chmod 0600 /var/lib/samba/private/hklm.ldb.bak tdbbackup '/var/lib/samba/private/openchange.ldb' chown 0:0 /var/lib/samba/private/openchange.ldb.bak chmod 0600 /var/lib/samba/private/openchange.ldb.bak tdbbackup '/var/lib/samba/private/sam.ldb' chown 0:0 /var/lib/samba/private/sam.ldb.bak chmod 0600 /var/lib/samba/private/sam.ldb.bak tdbbackup '/var/lib/samba/private/idmap.ldb' chown 0:0 /var/lib/samba/private/idmap.ldb.bak chmod 0600 /var/lib/samba/private/idmap.ldb.bak tdbbackup '/var/lib/samba/private/randseed.tdb' chown 0:0 /var/lib/samba/private/randseed.tdb.bak chmod 0600 /var/lib/samba/private/randseed.tdb.bak tdbbackup '/var/lib/samba/private/dns/sam.ldb.d/metadata.tdb' chown 0:120 /var/lib/samba/private/dns/sam.ldb.d/metadata.tdb.bak chmod 0660 /var/lib/samba/private/dns/sam.ldb.d/metadata.tdb.bak tdbbackup '/var/lib/samba/private/sam.ldb.d/metadata.tdb' chown 0:120 /var/lib/samba/private/sam.ldb.d/metadata.tdb.bak chmod 0660 /var/lib/samba/private/sam.ldb.d/metadata.tdb.bak tdbbackup '/var/lib/samba/private/mapistore/mapistore_id_mapping_used.tdb' chown 0:0 /var/lib/samba/private/mapistore/mapistore_id_mapping_used.tdb.bak chmod 0600 /var/lib/samba/private/mapistore/mapistore_id_mapping_used.tdb.bak tdbbackup '/var/lib/samba/private/netlogon_creds_cli.tdb' chown 0:0 /var/lib/samba/private/netlogon_creds_cli.tdb.bak chmod 0600 /var/lib/samba/private/netlogon_creds_cli.tdb.bak tdbbackup '/var/lib/samba/private/secrets.tdb' chown 0:0 /var/lib/samba/private/secrets.tdb.bak chmod 0600 /var/lib/samba/private/secrets.tdb.bak tdbbackup '/var/lib/samba/private/emsabp_tdb.tdb' chown 0:0 /var/lib/samba/private/emsabp_tdb.tdb.bak chmod 0600 /var/lib/samba/private/emsabp_tdb.tdb.bak tdbbackup '/var/lib/samba/private/schannel_store.tdb' chown 0:0 /var/lib/samba/private/schannel_store.tdb.bak chmod 0600 /var/lib/samba/private/schannel_store.tdb.bak rm -rf /var/lib/zentyal/tmp//samba.backup mkdir -p /var/lib/zentyal/tmp//samba.backup/private rsync -HAXavz /var/lib/samba/private// --exclude=*.tdb --exclude=*.ldb --exclude=ldap_priv --exclude=smbd.tmp --exclude=ldapi /var/lib/zentyal/tmp//samba.backup/private tar pcjf /var/lib/zentyal/conf//backup.DqbSHj/aux/samba.bak/private.tar.bz2 --hard-dereference -C /var/lib/zentyal/tmp//samba.backup private rm -rf /var/lib/zentyal/tmp//samba.backup mkdir -p /var/lib/zentyal/tmp//samba.backup/sysvol rsync -HAXavz /var/lib/samba/sysvol/ /var/lib/zentyal/tmp//samba.backup/sysvol tar pcjf /var/lib/zentyal/conf//backup.DqbSHj/aux/samba.bak/sysvol.tar.bz2 --hard-dereference -C /var/lib/zentyal/tmp//samba.backup sysvol failed. Error output: rm: cannot remove ‘/var/lib/zentyal/tmp//samba.backup/sysvol/kab34/рабочий стол/приложение/3 кл аудио’: Directory not empty Command output: . Exit value: 1

luha

  • Zen Samurai
  • ****
  • Posts: 453
  • Karma: +35/-1
    • View Profile
Видно что в конце предоставленного вами лога кодировка в пути поплыла и написано что не удалось произвести удаление, а дальше что скрипт не может продолжить работу т.к. директория не пуста. Видать не понравились названия папок на предположительно русском языке.

Я рекомендую делать бэкап самописным скриптом. Как сделать уже писал на этом форуме.