Changes

From SME Server
Jump to navigationJump to search
962 bytes added ,  06:46, 10 November 2007
added details re changing backup file slice size
Line 187: Line 187:  
  |    |    |    +-----------Month of Year  (1-12)
 
  |    |    |    +-----------Month of Year  (1-12)
 
  |    |    |    |    +-------Day of Week  (0=Sun,6=Sat)
 
  |    |    |    |    +-------Day of Week  (0=Sun,6=Sat)
 +
 +
 +
====Howto set the backup file slice size====
 +
 +
The default slice or part setting is 700Mb (to suit CD's).
 +
The slice size can be changed for example to suit 4.7Gb DVD's, by making 3 parts fit on to a DVD, so the required slice size is 1529Mb (allowing for overheads & real data size).
 +
 +
Create the custom template fragment
 +
mkdir -p /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf
 +
cp /etc/e-smith/templates/etc/dar/DailyBackup.dcf/90slice /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf
 +
 +
(the above cp command is all on one line)
 +
 +
Modify the file size & save
 +
pico -w /etc/e-smith/templates-custom/etc/dar/DailyBackup.dcf/90slice
 +
 +
Edit it to read like this
 +
{
 +
($backupwk{Slice} || '1529M') eq '1529M' ?  "--slice 1529M\n" : "--slice $backup
 +
}
 +
 +
Then save & exit
 +
Ctrl o
 +
Ctrl x
 +
 +
Then expand the template with
 +
expand-template /etc/dar/DailyBackup.dcf
 +
 +
 +
The next time the backup runs, the resultant backup file will be split into 1.529Gb part sizes.
    
==='''Removal/uninstall information'''===
 
==='''Removal/uninstall information'''===
624

edits

Navigation menu