Unsolved
This post is more than 5 years old
1 Rookie
•
45 Posts
0
1683
August 19th, 2014 05:00
manual save of a linux host
Experts,
I'd like to backup a linux host including all the vfstab mounts like /oracle/data, oracle/log ...
save -s /
backs up all under but no mounts from the vfstab
save -s -x /
will attempt to follow e.g. /proc/kmsg and hang
Do I have to explicitly list all the directories that I wish to backup, or is there an easy way to accomplish it?
Many thanks
Christian
No Events found!



crazyrov
4 Operator
•
1.3K Posts
0
August 19th, 2014 06:00
Chris,
Since the mount points are NFS shares they will have to be listed explicitly as a saveset for it to be backed up. All picks up only the mount points that are defined in the fstab.
crazyrov
4 Operator
•
1.3K Posts
0
August 19th, 2014 07:00
Nope, manual save need the saveset name be provided explicitly. If this is going to be a part of a script you could update the name of the mount point from the fstab before running backups.
But why do you want to run the backup manually rather than scheduling them which is a better option.
chrygel
1 Rookie
•
45 Posts
0
August 19th, 2014 07:00
Hi crazyrov,
it's not about NFS shares. See below
[entw] [root@lhXXX ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vgroot-lvroot 2.0G 366M 1.6G 20% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/mapper/vgroot-lvappl 248M 11M 226M 5% /appl
/dev/sda1 248M 99M 137M 42% /boot
/dev/mapper/vgroot-lvhome 1008M 34M 923M 4% /home
/dev/mapper/vgroot-lvopt 504M 17M 462M 4% /opt
/dev/mapper/vgroot-lvtmp 4.0G 210M 3.6G 6% /tmp
/dev/mapper/vgroot-lvusr 2.0G 1.1G 883M 54% /usr
/dev/mapper/vgroot-lvvar 1008M 405M 553M 43% /var
/dev/mapper/vgroot-lvlog 1008M 84M 874M 9% /var/log
/dev/mapper/vgtech-lvbmc 1008M 301M 657M 32% /opt/bmc
/dev/mapper/vgtech-lvrch 504M 17M 462M 4% /opt/rch
/dev/mapper/vgtech-lvrear 2.5G 117M 2.3G 5% /opt/rch/rear
/dev/mapper/vgtech-lvzexec 248M 11M 226M 5% /opt/zexec
/dev/mapper/vgdata01-lvmysql 1008M 124M 833M 13% /appl/mysql
/dev/mapper/vgdata01-lvmytest 9.9G 904M 8.5G 10% /appl/mysql/var/data/test
/dev/mapper/vgdata01-lvmytestbkp 9.9G 946M 8.5G 10% /appl/mysql/var/backup/test
I'd like to manually backup of all the mounted Filesystems. The use of save -x will stumble over the special files like /proc/kmsg.
I want to avoid to create an input file each time the system should be backed up. I'd rather specify save set "all" and let NetWorker do the job. But manual backups does not offer to specify save set "all", does it?
Thanks
Christian
crazyrov
4 Operator
•
1.3K Posts
0
August 19th, 2014 07:00
Well, you could create an adhoc backup group containing this client. Run start the group before you do the changes.
chrygel
1 Rookie
•
45 Posts
0
August 19th, 2014 07:00
It's simple, prior to performing an upgrade or a change in system or software settings I'd like to run a manual backup. That's only an additional backup to the ones scheduled at the NetWorker server.
ble1
4 Operator
•
14.3K Posts
1
August 19th, 2014 16:00
You can:
- run backup for that client only, eg. savegrp -l full -c , or
- you could run backup from client, but of course you must specify each fs
You can get list from savefs, for example run savefs -s -vpn and parse list of file systems as such.
I'm quite sure that last backup prior to change in system or software setting should be enough without any extra backup unless you are changing settings every 5 minutes.