Koozali.org: home of the SME Server

Backup

Offline agoriuq

  • 2
  • +0/-0
Backup
« on: July 05, 2012, 04:21:35 AM »
Hi. I´m new to linux and would line to know how to program a weekly backup. For example every Tuesday and Friday.
I was able to make a cifs backup with 1, 2, 3 or more rotations but they are made in consecutive days. Thanks

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Backup
« Reply #1 on: July 05, 2012, 04:35:00 AM »
Default backup allows setting full backup to occur on a particular day or on every day, an incremental will occur on the days not set for a full backup.


 
--
qui scribit bis legit

Offline agoriuq

  • 2
  • +0/-0
Re: Backup
« Reply #2 on: July 05, 2012, 06:49:49 AM »
Thank you for your reply. I know that, and that´s why I´m asking if there´s a way to make a different backup schedule, for example two or three days a week.

Offline TerryF

  • grumpy old man
  • *
  • 1,848
  • +6/-0
Re: Backup
« Reply #3 on: July 05, 2012, 07:45:19 AM »
If there was I would have said so...not availablke from the Server-manager..

You could setup the normal backup sched for one of the days you want and then setup a cron job to run the workstation backup at and when you want it over and above the default setup..

You could install the cron job contrib and still do it all from the server-manager..
--
qui scribit bis legit

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Backup
« Reply #4 on: July 05, 2012, 09:26:50 AM »
agoriuq

Rather than setup special cron jobs etc, just schedule a full weekly backup for Friday (or the day of your choosing) and daily incrementals on every other day including Tuesday.
This can be done very easily all from the server manager "Backup or Restore" panel.
You get a backup every day then, so your datas is "safer".
Incremental backups only use a small amount of disk space, based on the files that have changed since the last backup.

If you do not have the backup drive available on certain days (eg Mon, Wed, Thurs, Sat, Sun), then the backup will fail to run on those days. You will get an error report but that does not matter to you. The backup files (full & incremental) will still be OK to use. 


Another approach is to schedule a full backup only for Friday using the default backup program.
Then install the dar2 backup contrib and configure it to run a seperate full backup on Tuesday.

That way you get exactly what you want and they would be relatively easily configured from the server manager panels. The slight complication is you are running two types of backup which will be saved in different folder names on the backup destination drive. If restoring, you will need to select the correct "default" or "contrib" restore method depending on which backup you need to restore from.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.