Koozali.org: home of the SME Server

[Solved] Reset workstation backup count (IncNum )

Offline warren

  • *
  • 293
  • +0/-0
[Solved] Reset workstation backup count (IncNum )
« on: February 26, 2016, 03:35:52 PM »
As per this post ( https://forums.contribs.org/index.php/topic,45797.msg223261.html#msg223261  :-?

I've searched and dont seem to find anything. any pointers...
« Last Edit: February 27, 2016, 05:02:30 PM by warren »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Reset workstation backup count (IncNum )
« Reply #1 on: February 26, 2016, 04:07:14 PM »
assuming you're talking about backup on workstation, something like

Code: [Select]
config setprop backupwk SetNum=X

where X is the result of
Code: [Select]
config getprop backupwk SetsMax

should do the trick

Offline warren

  • *
  • 293
  • +0/-0
[Solved] Re: Reset workstation backup count (IncNum )
« Reply #2 on: February 26, 2016, 05:53:57 PM »
Hi Stefano ,

backup on workstation ( local removable disk ) with settings :
Quote
Backup is Enabled.
Backup is made on local removable disk media/usbBackup2
Number of rotating backup sets is 1
Number of daily backups contained in each set is 34
Compression level (0-9) of backup is 7
Daily backup occurs at 19:00
Each daily backup session is cleanly timed out after 8 hours.except full backups which are cleanly timed out after 24 hours
Full backup sessions (new backup set) are allowed everyday

Code: [Select]
config show backupwk
backupwk=service
    BackupTime=19:00
    Compression=7
    CompressionProg=gzip
    DaysInSet=34
    FullDay=7
    IncNum=33
    IncOnlyTimeout=yes
    Login=
    Mount=/mnt/smb
    Password=
    Program=dar
    SetNum=1
    SetsMax=1
    SmbHost=localhost
    SmbShare=media/usbBackup2
    Timeout=8
    VFSType=usb
    status=enabled


The backup last night failed due to zombie process ( email below to admin ) This would have been :Basename inc-034-20160224180006
Quote
umount2: Device or resource busy
umount: /media/usbBackup: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount2: Device or resource busy
Seems backup directory is already mounted. It should not happen and maybe there is a zombie process you must kill, or another backup in progress.
Backup terminated: backup failed - status: 7424


The backup drive is scheduled to be removed offsite today ( and new full backup set to begin ). So I want to set the backupwk config to do a new full backup , and start the incrementals over from inc-001.... ( but  IncNum=33 shows in the config )

Probably barking up the wrong tree , but how does the contents of /home/e-smith/db/backups 
snip..
Code: [Select]
tail /home/e-smith/db/backups
1456243202=backup_record|BackupType|workstation|EndEpochTime|1456256268|Result|0|StartEpochTime|1456243202
1456329601=backup_record|BackupType|workstation|EndEpochTime|1456450487|Result|backup:7424|StartEpochTime|1456329601
1456416001=backup_record|BackupType|workstation|EndEpochTime|1456416004|Result|backup:7424|StartEpochTime|1456416001
1456468801=backup_record|BackupType|workstation|EndEpochTime|1456477943|Result|backup:7424|StartEpochTime|1456468801


Tie into the updating / setting of the IncNum value in the backupwk config ?
« Last Edit: February 26, 2016, 07:23:36 PM by warren »