Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: pearless on September 10, 2008, 10:06:24 AM
-
I have added a single SATA disk using http://wiki.contribs.org/AddExtraHardDisk (I have 2 x IDE in RAID-1 already), BUT I don't want it backed up.
I have searched the forums, read the manual, but I am not too sure how to achieve this.
Ideas?
Cheers Douglas.
-
http://wiki.contribs.org/Backup_server_config#Standard_backup_.26_restore_inclusions
Cannot find any about exclusions...
-
http://wiki.contribs.org/Backup_server_config#Standard_backup_.26_restore_inclusions
Cannot find any about exclusions...
Read again: :-D
You can exclude ibay, user & other data if preferred by moving that data to /temp (see steps in above section "Procedure")
pearless
If you want the whole HD "out" ... just unmount it (=all partitions) before you start backup :eek:
(or, depending on where you mounted it in the 1st place, just use that "section Procedure")
Regards
Reinhold
-
R U using flexbackup? If so
config setprop flexbackup Prune /path
expand-template /etc/flexbackup.conf
Anything in the Prune list will not be backed up.
John
-
Read again: :-D
You can exclude ibay, user & other data if preferred by moving that data to /temp (see steps in above section "Procedure")
Must.. buy.. new.. goggles...
-
R U using flexbackup? If soconfig setprop flexbackup Prune /path
expand-template /etc/flexbackup.conf
Anything in the Prune list will not be backed up.
John
Hmm, it is /mnt/newdisk that I do not want to back up.
I went:
config setprop flexbackup Prune /mnt/newdisk
expand-template /etc/flexbackup.conf
and I got:
[root@main ~]# more /etc/flexbackup.conf
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
$afio_echo_block = 'false';
$afio_compress_threshold = '3';
$afio_compress_cache_size = '2';
$blksize = "32";
$mt_blksize = "0";
$buffer = 'false';
$buffer_megs = '0';
$pad_blocks = 'true';
$compress = 'hardware';
$compr_level = '4';
$cpio_format = 'newc';
$device = '/dev/nst0';
$dump_length = '0';
$dump_use_dumpdates = 'false';
# Set this to "true" to make erase operations just rewind - not really
# call "mt erase". For some tape drives, erase takes hours rather
# than seconds.
$erase_rewind_only = 'true';
$erase_tape_set_level_zero = 'true';
$exclude_expr[0] = 'news/articles';
$exclude_expr[1] = '.*~$';
$remoteshell = 'ssh';
$remoteuser = '';
$label = 'true';
$verbose = 'false';
$sparse = 'true';
$indexes = 'true';
$atime_preserve = 'true';
$staticfiles = 'false';
$staticlogs = "false";
$logdir = "/var/log/flexbackup";
$stampdir = "/var/state/flexbackup";
$index = "$stampdir/index";
$comp_log = "gzip";
$prefix = "";
$sprefix = "";
$tmpdir = "/tmp";
$mt{'tell'} = 'status';
$nocompress_types = 'mp3 Z z gz gif zip lha jpeg jpg taz tgz deb rpm bz2';
$tar_echo_record_num = 'false';
$tar_atime_preserve = 'true';
$traverse_fs = 'false';
$set{'full'} = '/ /mnt/newdisk';
$prune{'/'} = '/mnt/newdisk';
$type = 'tar';
I tried the backup and yep, /mnt/new disk was also backed up, ideas???
-
Remove the prune entry you added and re-expand the template. I didn't think enough about the second disk. I am pruning files but they are from the main disk.
Create a custom template of 10filesystems and have this line only:
$set{'full'} = '/';
To test this, just manually edit /etc/flexbackup.conf and change the line I stated above. Do your backup, and verify that it does what you need, then make the custom-template.
The code in 10prune_tree doesn't take into account a second mounted disk, if you look at your flexbackup.conf file, you have this entry:
prune{'/'} = '/mnt/newdisk';
Notice the file sytem that is to be pruned only shows / and not /mnt/newdisk.
hth,
John
-
Remove the prune entry you added and re-expand the template. I didn't think enough about the second disk. I am pruning files but they are from the main disk.
Create a custom template of 10filesystems and have this line only:
$set{'full'} = '/';
To test this, just manually edit /etc/flexbackup.conf and change the line I stated above. Do your backup, and verify that it does what you need, then make the custom-template.
The code in 10prune_tree doesn't take into account a second mounted disk, if you look at your flexbackup.conf file, you have this entry:
prune{'/'} = '/mnt/newdisk';
Notice the file sytem that is to be pruned only shows / and not /mnt/newdisk.
hth,
John
Hmm, I copied and modified the 10filesystems:
$outstring = "\$set{'full'} = '\';";
$outstring;
and I got:
$set{'full'} = '/';
$prune{'/'} = '/home/e-smith/files/ibay/media /mnt/newdisk';
$type = 'tar';
Note that the /home/e-smith/files/ibay/media is a symlink to /mnt/newdisk
but it still tried to backup /mnt/newdisk!
I seem to be missing something, man flexbackup.conf didn't seem to help..
Any other ideas? :-)
-
Take off the leading /, you are already backup up /, so you are telling the system to Prune //home...
This is my Prune line:
Prune=dev,tmp,var,bin,usr,lib,sbin,home/httpd,home/e-smith/files/ibays/homeshare and it works fine for me.
John
-
Take off the leading /, you are already backup up /, so you are telling the system to Prune //home...
This is my Prune line:
Prune=dev,tmp,var,bin,usr,lib,sbin,home/httpd,home/e-smith/files/ibays/homeshare and it works fine for me.
John
Thanks,
I got it all working by creating 10Exclude_expr00 and adding:
$exclude_expr[2] = '.*/files/ibays/media/.*';
and creating 10filesystems and replaced its contents with:
$outstring = "\$set{'full'} = '/';";
$outstring
and it now works.
Thanks everyone for all your help!
Cheers
Douglas.