Compress tar backups with gzip or bzip2 | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
Compress tar backups with gzip or bzip2
January 31, 2013
6:24 pm
Avatar
Guest
Guests

Hi, 

I was wondering if it was possible to pass to the tar command to generate a compressed tar.bz2 or .tar.gz file during backup and compression. 

 

For example, in Configuration>General under Server Use Options there are 2 fields, one for tar path and command and for mysqldump. In the tar path and command box, can I change it from just "tar" to "tar -j" for bzip2 or "tar -z" for gzip? Will it properly create the .tar.bz2 or tar.gz file?

Thanks!

January 31, 2013
6:32 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

That could work if you set the Manual Backup option to No and Activate the tar server utility. Let me know how it goes...

January 31, 2013
6:48 pm
Avatar
Guest
Guests

Going to try now. Can you explain what the Manual backup option does exactly? It's a little unclear....

January 31, 2013
6:52 pm
Avatar
Guest
Guests

XCloner! Support said:

That could work if you set the Manual Backup option to No and Activate the tar server utility. Let me know how it goes...

Doesn't seem to work. I checked the path for "tar" which is located in /bin/tar so I entered: /bin/tar -j and I received this error:

Backup failed! Please check that you have support for the tar utility(/usr/bin/tar or /usr/local/bin/tar) on your server and the path you set it's corect in Configuration, or choose the Zip archive type!

Maybe I can replace tar with zip?


January 31, 2013
6:54 pm
Avatar
Guest
Guests

Shaya said:

XCloner! Support said:

That could work if you set the Manual Backup option to No and Activate the tar server utility. Let me know how it goes...

Doesn't seem to work. I checked the path for "tar" which is located in /bin/tar so I entered: /bin/tar -j and I received this error:

Backup failed! Please check that you have support for the tar utility(/usr/bin/tar or /usr/local/bin/tar) on your server and the path you set it's corect in Configuration, or choose the Zip archive type!

Maybe I can replace tar with zip?


Replacing with /usr/bin/zip (location of zip on my server) didn't work either. While I think it's great I can generate tar files, I think this would be much better if they can be compressed instead of just archived. Any idea on how to do this?


January 31, 2013
7:22 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Inside the XCloner Config -> System tab there is an Compress backup option, that should help you generate a tgz type backup.

 

Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10052
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
piotr K
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0