Share this post:
Responses (23)
-
Accepted Answer
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! -
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
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 -
Accepted Answer
Please can you get ready to do another restore then enable webconfig debugging:
Then do the restore. Once it has failed, disable the webconfig debugging:touch /var/log/webconfig/debug.log
chown webconfig:webconfig /var/log/webconfig/debug.log
touch /etc/clearos/webconfig.debug
Then attach your /var/log/webconfig/debug.log.rm -f /etc/clearos/webconfig.debug
-
Accepted Answer
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. -
Accepted Answer
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 -
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
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. -
Accepted Answer
-
Accepted Answer
Edilson Carlos Souza wrote:
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.
Quando tive esse tipo de falha, foi porque instalei os drivers AMDGPU
Como faço para desinstalar isso?
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. -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
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:
Do you get any errors.yum install $(cat /var/clearos/configuration_backup/restore/var/clearos/configuration_backup/installed_apps.txt)
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. -
Accepted Answer
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. -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »