- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fback and gzip in one command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 03:17 AM
тАО01-30-2006 03:17 AM
fback and gzip in one command
I want to backup my configuration directories and gzip it and stored it on to another partition. Can you please let me know the one command which will do fabackup and pipe that to execute gzip.
example
backup data from /home/test/ folder and gzip the file and then
and store backuped file on to /dailybackup/ folder
Thanks
Ashish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 03:47 AM
тАО01-30-2006 03:47 AM
Re: fback and gzip in one command
I do not think that fbackup will support gzipping all files as it goes. I would recommend a two step process.
gzip the configuration files to a location you have selected and then call fbackup command line after the files are zipped.
You can try something:
fbackup
or
gzip < fbackup
The results may be explosive or unreliable.
Suggested code:
tar cvf /dailybackup/config.tar
gzip /dailybackup/config.tar
fbackup
fbackup likes going to tape.
Sorry, three steps.
:-(
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 03:57 AM
тАО01-30-2006 03:57 AM
Re: fback and gzip in one command
fbackup -f - -i /home/test | gzip > /daily/backup/home-test.fb.gz
As with compress, if no file is specified or - is specified, stdin is compressed to stdout so the redirection is required to save the compressed data to a file.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 07:25 AM
тАО01-30-2006 07:25 AM
Re: fback and gzip in one command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 08:31 AM
тАО01-30-2006 08:31 AM
Re: fback and gzip in one command
Can you -
for i in `ls /home/test/folder`
do
cat $i | gzip > /dailybackup/$i.gz
done
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 06:56 PM
тАО01-30-2006 06:56 PM
Re: fback and gzip in one command
After taking backup with fbackup then piping to gzip to make gunzipped file. Then do you want to save that gunzipped file or unzipping that file and extract the files to /dailybackup/ directory?
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-30-2006 07:03 PM
тАО01-30-2006 07:03 PM
Re: fback and gzip in one command
# tar -cvf /dailybackup/backup.tar /home/test
# gunzip /dailybackup/backup.tar
You will have backup file as,
dailybackup/backup.tar.gz
--
Muthu