Re: [U2] backing up system
Hello, For a best *uv*backup with on-line system, use uvbackup, it perform a file by file, record by record dump ; not a blind binary copy. Here is a little shell script which create one uvdb file for one account. When done, you can copy the uvbfile out of system. My two pence. Manu more uvbackup-account #!/bin/sh # UV Backup of one account # Syntax : uvbackup-account accountName # UVDB is the path to the root of uvdatabase # UVBACKUP is the path to the repository of uvb files if [ $1 ] then find $UVDB/$1 -print | uvbackup -f -v -s $UVBACKUP/$1.log -limit 1 -cachedetail - $UVBACKUP/$1.uvb echo --- echo `date` echo $1.uvb is available on $UVBACKUP else echo Syntaxe : uvbackup-account accountname fi -Message d'origine- De : u2-users-boun...@listserver.u2ug.org [mailto:u2-users- boun...@listserver.u2ug.org] De la part de david yu Envoyé : vendredi 11 mars 2011 23:54 À : u2-users@listserver.u2ug.org Objet : [U2] backing up system hello, We are using HP-UX 11.23 and I have a question in regards to backing up system by account, In the root directory we have 6 accounts, DBCAlive, DBCAtest, DBAZlive, DBAZtest, DBUPGCA, DBUPGAZ. When we do our nightly backup, we backup all the accounts by using cpio but sometimes we just want to backup 2 accounts at the same time, anyone knows how this is done? here is the command that we use to backup: mt -t /dev/rmt/1mb rewind cd / find . -print|cpio -ovcB/dev/rmt/1mb Any assistance will be greatly appreciated. thanks! ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] backing up system
Consider doing an FTP backup via FileZilla. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of david yu Sent: Friday, March 11, 2011 5:54 PM To: u2-users@listserver.u2ug.org Subject: [U2] backing up system hello, We are using HP-UX 11.23 and I have a question in regards to backing up system by account, In the root directory we have 6 accounts, DBCAlive, DBCAtest, DBAZlive, DBAZtest, DBUPGCA, DBUPGAZ. When we do our nightly backup, we backup all the accounts by using cpio but sometimes we just want to backup 2 accounts at the same time, anyone knows how this is done? here is the command that we use to backup: mt -t /dev/rmt/1mb rewind cd / find . -print|cpio -ovcB/dev/rmt/1mb Any assistance will be greatly appreciated. thanks! ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] backing up system
What about using tar? tar cvf /dev/rmt/1mb directory1 directory2 directory3 The only caveat is that it will backup the directory file structure as it is, so if you do a restore, it will restore over top of the same place (it will overwrite). Whereas: cd /directory1 ; tar cvf /dev/rmt/1mb . Will backup the directory with relative filenames, so if you wanted to restore you could: cd /tmp ; tar xvf /dev/rmt/1mb .+the filename (do a tar tvf /dev/rmt/1mb to see the filename structure, since they will all start with ./ you can restore the files anywhere, setup a Q pointer to that directory and copy out what yout want.) or If all 6 six accounts are the only directories under a parent, you could: cd /parent_directory ; tar cvf /dev/rmt/1mb --exclude exclude directory --exclude exclude directory . (or use -X filename) and place all the directories to exclude in that file George -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users- boun...@listserver.u2ug.org] On Behalf Of Bill Brutzman Sent: Monday, March 14, 2011 11:05 AM To: U2 Users List Subject: Re: [U2] backing up system Consider doing an FTP backup via FileZilla. --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users- boun...@listserver.u2ug.org] On Behalf Of david yu Sent: Friday, March 11, 2011 5:54 PM To: u2-users@listserver.u2ug.org Subject: [U2] backing up system hello, We are using HP-UX 11.23 and I have a question in regards to backing up system by account, In the root directory we have 6 accounts, DBCAlive, DBCAtest, DBAZlive, DBAZtest, DBUPGCA, DBUPGAZ. When we do our nightly backup, we backup all the accounts by using cpio but sometimes we just want to backup 2 accounts at the same time, anyone knows how this is done? here is the command that we use to backup: mt -t /dev/rmt/1mb rewind cd / find . -print|cpio -ovcB/dev/rmt/1mb Any assistance will be greatly appreciated. thanks! ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] backing up system
On 11/03/11 23:00, Stephen Jackson wrote: Check out rsync Agreed. And have you done dbpause etc? While *RECENT* versions of UV shouldn't be a problem, you'd be ill-advised to run cpio (or any non-MV backup tool) over an older version if it's in active use. That's a guarantee of corrupted files when you restore ... For belt and braces (plus being a native tool it's a lot safer), look at using uvbackup or the UD equivalent. The resulting output is text so it should compress well. Cheers, Wol On FridayM/11/11 5:53 PM, david yu d...@yahoo.com wrote: hello, We are using HP-UX 11.23 and I have a question in regards to backing up system by account, In the root directory we have 6 accounts, DBCAlive, DBCAtest, DBAZlive, DBAZtest, DBUPGCA, DBUPGAZ. When we do our nightly backup, we backup all the accounts by using cpio but sometimes we just want to backup 2 accounts at the same time, anyone knows how this is done? here is the command that we use to backup: mt -t /dev/rmt/1mb rewind cd / find . -print|cpio -ovcB/dev/rmt/1mb Any assistance will be greatly appreciated. thanks! ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] backing up system
Check out rsync On FridayM/11/11 5:53 PM, david yu d...@yahoo.com wrote: hello, We are using HP-UX 11.23 and I have a question in regards to backing up system by account, In the root directory we have 6 accounts, DBCAlive, DBCAtest, DBAZlive, DBAZtest, DBUPGCA, DBUPGAZ. When we do our nightly backup, we backup all the accounts by using cpio but sometimes we just want to backup 2 accounts at the same time, anyone knows how this is done? here is the command that we use to backup: mt -t /dev/rmt/1mb rewind cd / find . -print|cpio -ovcB/dev/rmt/1mb Any assistance will be greatly appreciated. thanks! ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users