Forums

Resolved
0 votes
Sempre que tento restaurar um backup dá erro e não consigo fazer, o que pode ser?
Attachments:
Thursday, December 10 2020, 08:33 PM
Share this post:
Responses (23)
  • Accepted Answer

    Wednesday, December 16 2020, 12:54 PM - #Permalink
    Resolved
    0 votes
    Olá Nick,

    fiz um teste com o Baremetal Backup and Restore, mas quando apago pastas e arquivos do meu compartilhamento não consigo recuperar com ele, e com o BackupPC não estou conseguindo configurar para criar o Backup, vi que ele é interessante pq consegue programar o periodo de backup total e parcial.
    Tem algum vídeo mostrando essas configurações, tanto no Baremetal, quanto no BackupPc?
    Obrigado!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 09:01 PM - #Permalink
    Resolved
    0 votes
    Bare Metal Backup will backup /home and flexshares and your configs, but it only does it to USB. Backup PC is more flexible and may support remote targets. I personally use rsync with a script based on https://gist.github.com/morhekil/8382294. For me it is over-parametised but I use something similar. I also back up some of by data offsite by VPN with a similar script but have to do something horrible with sshfs to get the "rsync --link-dest" to work.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 08:28 PM - #Permalink
    Resolved
    0 votes
    Nick o que me recomenda para backups de Flexshare como pastas, arquivos e etc?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 08:08 PM - #Permalink
    Resolved
    0 votes
    I have never used BackupPC and I believe it allows for bare metal restore of any designated system(s), either on the LAN or the server itself. It is a completer third party app and we provide it as it is, doing little to it and it is controlled through its own web interface. The Confguration Backup takes a basic copy of your configuration and of your user directory which allows you to get your system up and running again if you hit a problem with your running config or if you want to move your system to a new server. It does not backup any user data like e-mails, flexshares or databases.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 06:29 PM - #Permalink
    Resolved
    0 votes
    Nick, me explica uma coisa por favor.

    Como funciona o Backup PC e backup de configuração?
    Quais as diferença e o que os dois fazem?
    Obrigado!
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 05:10 PM - #Permalink
    Resolved
    0 votes
    That output has nothing to do with the Configuraton Backup. It looks like it is from BackupPC
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 11:39 AM - #Permalink
    Resolved
    0 votes
    Olá Nick


    Dec 15 11:34:14 UTC 2020: 0.2698: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:14 UTC 2020: 0.2698: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:14 UTC 2020: 0.2847: profile: debug: clearos\apps\base\File::_get_system_max_bytes (1599):
    Dec 15 11:34:14 UTC 2020: 0.2848: profile: debug: clearos\apps\base\File::exists (392):
    Dec 15 11:34:14 UTC 2020: 0.2848: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:14 UTC 2020: 0.2848: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:14 UTC 2020: 0.2997: profile: debug: clearos\apps\base\Folder::__construct (145):
    Dec 15 11:34:14 UTC 2020: 0.2998: profile: debug: clearos\apps\base\Folder::exists (340):
    Dec 15 11:34:14 UTC 2020: 0.2998: profile: debug: clearos\apps\base\Daemon::get_process_id (321):
    Dec 15 11:34:14 UTC 2020: 0.2998: profile: debug: clearos\apps\base\File::__construct (176):
    Dec 15 11:34:14 UTC 2020: 0.2999: profile: debug: clearos\apps\base\File::exists (392):
    Dec 15 11:34:14 UTC 2020: 0.2999: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:14 UTC 2020: 0.2999: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:14 UTC 2020: 0.3146: profile: debug: clearos\apps\base\File::exists (392):
    Dec 15 11:34:14 UTC 2020: 0.3147: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:14 UTC 2020: 0.3147: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:14 UTC 2020: 0.3292: profile: debug: clearos\apps\base\File::exists (392):
    Dec 15 11:34:14 UTC 2020: 0.3293: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:14 UTC 2020: 0.3293: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:15 UTC 2020: 0.3443: profile: debug: clearos\apps\base\File::get_contents (208):
    Dec 15 11:34:15 UTC 2020: 0.3444: profile: debug: clearos\apps\base\File::get_contents_as_array (224):
    Dec 15 11:34:15 UTC 2020: 0.3444: profile: debug: clearos\apps\base\File::get_size (423):
    Dec 15 11:34:15 UTC 2020: 0.3445: profile: debug: clearos\apps\base\File::exists (392):
    Dec 15 11:34:15 UTC 2020: 0.3445: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:15 UTC 2020: 0.3445: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:15 UTC 2020: 0.3591: profile: debug: clearos\apps\base\File::_get_system_max_bytes (1599):
    Dec 15 11:34:15 UTC 2020: 0.3592: profile: debug: clearos\apps\base\File::exists (392):
    Dec 15 11:34:15 UTC 2020: 0.3593: profile: debug: clearos\apps\base\Shell::__construct (105):
    Dec 15 11:34:15 UTC 2020: 0.3593: profile: debug: clearos\apps\base\Shell::execute (132): /bin/ls '/var/run/BackupPC/BackupPC.pid'
    Dec 15 11:34:15 UTC 2020: 0.3744: profile: debug: clearos\apps\base\Folder::__construct (145):
    Dec 15 11:34:15 UTC 2020: 0.3744: profile: debug: clearos\apps\base\Folder::exists (340):
    Dec 15 11:34:15 UTC 2020: 0.3746: profile: info: clearos\framework\Core (0): Final output sent to browser
    Dec 15 11:34:15 UTC 2020: 0.3747: profile: debug: clearos\framework\Core (0): Total execution time: 0.3768
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 15 2020, 10:54 AM - #Permalink
    Resolved
    0 votes
    Please can you get ready to do another restore then enable webconfig debugging:
    touch /var/log/webconfig/debug.log
    chown webconfig:webconfig /var/log/webconfig/debug.log
    touch /etc/clearos/webconfig.debug
    Then do the restore. Once it has failed, disable the webconfig debugging:
    rm -f /etc/clearos/webconfig.debug
    Then attach your /var/log/webconfig/debug.log.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 08:49 PM - #Permalink
    Resolved
    0 votes
    I got that line from here. You could also try the second and fourth answer. Don't try the third - it will take forever if it works.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 08:17 PM - #Permalink
    Resolved
    0 votes
    esse é o conteudo do arquivo...


    [root@server configuration_backup]# vi installed_apps.txt
    app-accounts
    app-accounts-core
    app-base
    app-base-core
    app-certificate-manager
    app-certificate-manager-core
    app-clearcenter
    app-clearcenter-core
    app-configuration-backup
    app-configuration-backup-core
    app-dashboard
    app-dashboard-core
    app-date
    app-date-core
    app-dhcp
    app-dhcp-core
    app-disk-usage
    app-disk-usage-core
    app-dns
    app-dns-core
    app-edition
    app-edition-core
    app-events
    app-events-core
    app-firewall
    app-firewall-core
    app-flexshare
    app-flexshare-core
    app-graphical-console
    app-graphical-console-core
    app-groups
    app-groups-core
    app-incoming-firewall
    app-incoming-firewall-core
    app-language
    app-language-core
    app-ldap-core
    app-log-viewer
    app-log-viewer-core
    app-mail
    app-mail-core
    app-mail-notification-core
    app-marketplace
    "installed_apps.txt" 74L, 1284C
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 08:09 PM - #Permalink
    Resolved
    0 votes
    O arquivo tá lá sim.....

    [root@server configuration_backup]# ls -l
    total 4
    -rw-r--r-- 1 root root 1284 Dez 10 15:30 installed_apps.txt
    [root@server configuration_backup]#
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 07:58 PM - #Permalink
    Resolved
    0 votes
    Does /var/clearos/configuration_backup/restore/var/clearos/configuration_backup/installed_apps.txt not exist? If not, you'll need to extract it from your configuration backup.

    BTW, no need to do all the pictures. If you use PuTTy, you can copy from the screen just by selecting the text. You can also paste into it by right-clicking.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 07:26 PM - #Permalink
    Resolved
    0 votes
    Olá Nick!
    Executei o comando que me passou, veja só o resultado.
    obrigado!
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 07:20 PM - #Permalink
    Resolved
    0 votes
    Those files are all OK. I am not sure why you are going this way. You will know if you had installed the AMDGPU drivers.

    Try the yum command I gave you.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 06:43 PM - #Permalink
    Resolved
    0 votes
    Na imagem em anexo é um print da pasta Yum.repos.d....
    Devo excluir todos esses arquivos? todos são .repo
    Outra coisa qual comando uso para compactar esses arquivos e qual utilizo para restaurar ?
    obrigado!
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 06:29 PM - #Permalink
    Resolved
    0 votes
    Use any tool you want to unpack and repack.

    Actually you should already have it unpacked under /var/clearos/configuration_backup/restore, you can edit the files there and repack it with something similar to the command in the "Using the online backup for disaster recovery" section of this doc.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 06:14 PM - #Permalink
    Resolved
    0 votes
    Quando você falar em descompatar e compactar posso baixar ele no windows e fazer isso por algum programa, ou tem que ser via ssh com comando no terminal?
    obrigado!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 05:42 PM - #Permalink
    Resolved
    0 votes
    Edilson Carlos Souza wrote:

    Quando tive esse tipo de falha, foi porque instalei os drivers AMDGPU

    Como faço para desinstalar isso?
    Installing the AMDGPU drivers is a specific manual installation you may have done. It is unlikely that you have done it. To get rid of the problem you need to unpack the backup and remove the repo file from the /etc/yum.repos.d folder in it, then re-pack the back up file.

    The contents of the /etc/clearos/network.conf does not matter, but if any of the EXTIF or LANIF in it are different between the backup and the current system, you should block the backup from restoring the file.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 04:55 PM - #Permalink
    Resolved
    0 votes
    Olha a configuração do /etc/clearos/network.conf
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 04:42 PM - #Permalink
    Resolved
    0 votes
    Quando tive esse tipo de falha, foi porque instalei os drivers AMDGPU

    Como faço para desinstalar isso?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 02:22 PM - #Permalink
    Resolved
    0 votes
    Can you make sure your system is registered as it was before doing the upgrades.

    If it is a new box you are trying to restore to, please see the note here about /etc/clearos/network.conf.

    In the configuration backup file there is a file called installed_apps.txt. If you have tried a restore, you should also find a copy in /var/clearos/configuration_backup/restore/var/clearos/configuration_backup/installed_apps.txt. Can you try installing them with a:
    yum install $(cat /var/clearos/configuration_backup/restore/var/clearos/configuration_backup/installed_apps.txt)
    Do you get any errors.

    When I had this sort of failure it was because I'd installed the AMDGPU drivers which sets up a local repo. This failed to restore and brought down everything. I had to fiddle with the configuration backup, unpacking it and removing elements before I could get a restore to work. I also had the /etc/clearos/network.conf issue.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, December 14 2020, 12:35 PM - #Permalink
    Resolved
    0 votes
    Nick vou postar aqui o Log completo. Obrigado!

    Dec 14 09:27:12 server configuration-backup: Initializing
    Dec 14 09:27:12 server configuration-backup: Stopping event monitor service
    Dec 14 09:27:14 server configuration-backup: Archive File: /var/clearos/configuration_backup/backup-server_ocbserver_lan ...
    Dec 14 09:27:14 server configuration-backup: Checking archive version compatibility
    Dec 14 09:27:14 server configuration-backup: Restore type: match
    Dec 14 09:27:14 server configuration-backup: Unpacking archive file
    Dec 14 09:27:14 server configuration-backup: Downloading and installing apps. Please be patient.
    Dec 14 09:28:17 server engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (227): Command execution fai ...
    Dec 14 09:28:17 server engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Yum.php (200): execute
    Dec 14 09:28:17 server engine: exception: debug backtrace: /usr/clearos/apps/configuration_backup/libraries/Configuratio ...
    Dec 14 09:28:17 server engine: exception: debug backtrace: /usr/sbin/configuration-restore (134): run_restore
    Dec 14 09:28:17 server configuration-backup: Command execution failed.
    Dec 14 09:28:17 server configuration-backup: Importing LDAP directory
    Dec 14 09:28:43 server configuration-backup: Restarting service: slapd
    Dec 14 09:28:43 server configuration-backup: Restoring configuration files
    Dec 14 09:28:43 server configuration-backup: Running app upgrades
    Dec 14 09:28:44 server configuration-backup: checking upgrade for network
    Dec 14 09:28:45 server configuration-backup: checking upgrade for events
    Dec 14 09:28:45 server configuration-backup: checking upgrade for base
    Dec 14 09:28:46 server configuration-backup: checking upgrade for clearcenter
    Dec 14 09:28:46 server configuration-backup: checking upgrade for edition
    Dec 14 09:28:47 server configuration-backup: checking upgrade for accounts
    Dec 14 09:28:47 server configuration-backup: checking upgrade for firewall
    Dec 14 09:28:47 server configuration-backup: checking upgrade for registration
    Dec 14 09:28:47 server configuration-backup: checking upgrade for certificate_manager
    Dec 14 09:28:47 server configuration-backup: checking upgrade for mail_notification
    Dec 14 09:28:47 server configuration-backup: checking upgrade for mail
    Dec 14 09:28:47 server configuration-backup: checking upgrade for smtp
    Dec 14 09:28:48 server configuration-backup: checking upgrade for dns
    Dec 14 09:28:48 server configuration-backup: checking upgrade for dhcp
    Dec 14 09:28:48 server configuration-backup: checking upgrade for date
    Dec 14 09:28:48 server configuration-backup: checking upgrade for configuration_backup
    Dec 14 09:28:48 server configuration-backup: checking upgrade for ssh_server
    Dec 14 09:28:48 server configuration-backup: checking upgrade for support
    Dec 14 09:28:48 server configuration-backup: checking upgrade for storage
    Dec 14 09:28:48 server configuration-backup: checking upgrade for graphical_console
    Dec 14 09:28:48 server configuration-backup: checking upgrade for flexshare
    Dec 14 09:28:49 server configuration-backup: checking upgrade for openldap
    Dec 14 09:28:50 server configuration-backup: checking upgrade for samba
    Dec 14 09:28:52 server configuration-backup: checking upgrade for samba_extension
    Dec 14 09:28:52 server configuration-backup: checking upgrade for openldap_directory
    Dec 14 09:28:52 server configuration-backup: checking upgrade for disk_usage
    Dec 14 09:28:52 server engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (227): Command execution fai ...
    Dec 14 09:28:52 server engine: exception: debug backtrace: /usr/clearos/apps/configuration_backup/libraries/Configuratio ...
    Dec 14 09:28:52 server engine: exception: debug backtrace: /usr/sbin/configuration-restore (134): run_restore
    Dec 14 09:28:52 server configuration-backup: Command execution failed.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, December 10 2020, 09:50 PM - #Permalink
    Resolved
    0 votes
    The problem looks like downloading the apps. Something is failing there. Does the system log show what it was trying to download at the time and what were the errors?
    The reply is currently minimized Show
Your Reply