Koozali.org: home of the SME Server

built in backup

Offline robf355

  • *
  • 82
  • +0/-0
built in backup
« on: January 08, 2016, 02:17:20 PM »
Hi
I have a new install of SME 9.1, I have tried to configure the backup but it doesn't seem to be working, the backup settings are:
Quote
Backup is Enabled.
Backup is made on LAN workstation SERVER2 via cifs
Destination backup share folder is SERVER_BACKUP
Login is rob100763
Password is ********
Number of rotating backup sets is 1
Number of daily backups contained in each set is 1
Compression level (0-9) of backup is 6
Daily backup occurs at 12:30
Each daily backup session is cleanly timed out after 8 hours.except full backups which are cleanly timed out after 24 hours
Full backup session (new backup sets) is allowed only on Friday
/var/log/messages has:
Quote
Jan  8 12:30:02 server esmith::event[23749]: Processing event: pre-backup
Jan  8 12:30:02 server esmith::event[23749]: Running event handler: /etc/e-smith/events/actions/generic_template_expand
Jan  8 12:30:02 server esmith::event[23749]: expanding /etc/dar/DailyBackup.dcf
Jan  8 12:30:02 server esmith::event[23749]: generic_template_expand=action|Event|pre-backup|Action|generic_template_expand|Start|1452256202 42615|End|1452256202 132934|Elapsed|0.090319
Jan  8 12:30:02 server esmith::event[23749]: Running event handler: /etc/e-smith/events/pre-backup/S10mysql-delete-dumped-tables
Jan  8 12:30:02 server esmith::event[23749]: S10mysql-delete-dumped-tables=action|Event|pre-backup|Action|S10mysql-delete-dumped-tables|Start|1452256202 133259|End|1452256202 143505|Elapsed|0.010246
Jan  8 12:30:02 server esmith::event[23749]: Running event handler: /etc/e-smith/events/pre-backup/S20mysql-dump-tables
Jan  8 12:30:03 server esmith::event[23749]: S20mysql-dump-tables=action|Event|pre-backup|Action|S20mysql-dump-tables|Start|1452256202 143840|End|1452256203 68335|Elapsed|0.924495
Jan  8 12:30:03 server esmith::event[23749]: Running event handler: /etc/e-smith/events/pre-backup/S30ldap-dump
Jan  8 12:30:03 server esmith::event[23749]: 568fabcb bdb_monitor_db_open: monitoring disabled; configure monitor database to enable
Jan  8 12:30:03 server esmith::event[23749]: S30ldap-dump=action|Event|pre-backup|Action|S30ldap-dump|Start|1452256203 68712|End|1452256203 127071|Elapsed|0.058359
Jan  8 12:30:03 server esmith::event[23749]: Running event handler: /etc/e-smith/events/pre-backup/S50rewind-tape
Jan  8 12:30:03 server esmith::event[23749]: S50rewind-tape=action|Event|pre-backup|Action|S50rewind-tape|Start|1452256203 127338|End|1452256203 164781|Elapsed|0.037443
Jan  8 12:30:03 server esmith::event[23749]: Running event handler: /etc/e-smith/events/pre-backup/S80share-dump-attributes
Jan  8 12:30:03 server esmith::event[23749]: S80share-dump-attributes=action|Event|pre-backup|Action|S80share-dump-attributes|Start|1452256203 165138|End|1452256203 204097|Elapsed|0.038959
Jan  8 12:30:03 server /sbin/e-smith/do_backupwk[23748]: /home/e-smith/db/backups: OLD 1452256201=backup_record|BackupType|workstation|StartEpochTime|1452256201
Jan  8 12:30:03 server /sbin/e-smith/do_backupwk[23748]: /home/e-smith/db/backups: NEW 1452256201=backup_record|BackupType|workstation|EndEpochTime|1452256203|StartEpochTime|1452256201
Jan  8 12:30:03 server /sbin/e-smith/do_backupwk[23748]: /home/e-smith/db/backups: OLD 1452256201=backup_record|BackupType|workstation|EndEpochTime|1452256203|StartEpochTime|1452256201
I have searched the forum but couldn't find anything about backups failing, the backup destination is \\server2\SERVER_BACKUP which has valid read/write permissions

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: built in backup
« Reply #1 on: January 08, 2016, 02:46:47 PM »
I don't see any failure message

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: built in backup
« Reply #2 on: January 08, 2016, 02:52:59 PM »
A status message from the backup should be mailed to your admin user--what does it say?
......

Offline robf355

  • *
  • 82
  • +0/-0
Re: built in backup
« Reply #3 on: January 08, 2016, 03:04:29 PM »
no status message at all or email that's what's confusing me, however I have done a bit more testing the problem seems to be host name resolution, I tried to mount the backup share using mount and got:
[root@server ~]# mount -t cifs \\\\SERVER2\\SERVER_BACKUP /smb -o username=rob100763,workgroup=KARTER
mount error: could not resolve address for SERVER2: Unknown error
Not sure why sme can't find the share, all the windows machines seems to see it :-?
So I tried adding the host name to /etc/hosts and the backup seems to be working correctly : 8-)
« Last Edit: January 08, 2016, 03:06:31 PM by robf355 »

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: built in backup
« Reply #4 on: January 08, 2016, 03:08:43 PM »
don't edit host file..

add server2 in hostnames and addresses

Offline robf355

  • *
  • 82
  • +0/-0
Re: built in backup
« Reply #5 on: January 08, 2016, 03:14:52 PM »
Thanks

Offline DanB35

  • *****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: built in backup
« Reply #6 on: January 08, 2016, 03:56:38 PM »
Yes, the hostnames and addresses panel is the place to add it, to make sure that it survives system reconfiguration and reboot.  Beyond that, NETBIOS name resolution is an ugly hack anyway, which is likely why your server wasn't seeing the backup server.
......

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: built in backup
« Reply #7 on: January 08, 2016, 04:50:37 PM »
Yes, the hostnames and addresses panel is the place to add it, to make sure that it survives system reconfiguration and reboot.  Beyond that, NETBIOS name resolution is an ugly hack anyway, which is likely why your server wasn't seeing the backup server.

I agree.. backup host must be an IP or a hostname, not a netbios name

guest22

Re: built in backup
« Reply #8 on: January 13, 2016, 11:46:00 AM »
I agree.. backup host must be an IP or a hostname, not a netbios name


Fully agree.

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: built in backup
« Reply #9 on: January 14, 2016, 10:49:55 AM »

Fully agree.

is it clear in the wiki? could you check please and amend it if necessary? TIA