Difference between revisions of "Talk:Backup with dar"

From SME Server
Jump to navigationJump to search
Line 27: Line 27:
  
 
This is mentioned in the text, but not how to use it.
 
This is mentioned in the text, but not how to use it.
 
== Instructions are outdated ==
 
 
AFAIK the installation instructions are outdated as SME Server 7.4 comes with a built in backup that can use dar. <small>—&nbsp;[[User:Cactus|Cactus]] ([[User talk:Cactus|talk]]&nbsp;|&nbsp;[[Special:Contributions/Cactus|contribs]])&nbsp;</small> 22:12, 26 November 2008 (UTC)
 

Revision as of 12:18, 15 July 2013

Add how to exclude an ibay from the backup?

Should there also be added a section on how to avoid an ibay being backed up. You may not want to back up an ibay that is a mirror for instance.

create a custom template, 45prune, in /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/

{

   my @excludes = ('home/e-smith/files/ibays/ibaytoexclude1','home/e-smith/files/ibays/ibaytoexclude2');
   foreach my $dir ( @excludes ) {
       $OUT .= "--prune $dir\n";
   }

}

expand-template /etc/dar/DailyBackup.dcf


Add how to start a one-off backup?

To backup up to workstation as a one-off, not a scheduled event, run

/sbin/e-smith/do_backupwk

However note that scheduled backups must be enabled for the above command to work.

mc dar plugin

This is mentioned in the text, but not how to use it.