HOW TO: make full backups use --rsyncable w/ gzip

AngelofDeth

Member
Feb 11, 2006
9
0
151
How old is the gzip release you're using; what specific version do you have?

I confirm that on at least gzip v1.3.3, dated 2002-03-08, the option "--rsyncable" to "make rsync-friendly archives" is included.
I've tried the standard gnu releases 1.2.4, and 1.3.9, on FreeBSD. Perhaps Linux distros have integrated it...
 

useradmin

Well-Known Member
Oct 8, 2004
107
0
166
INDIA
rsync --password-file

HI,


I would like to use push method with password-file option.


rsync --password-file=/root/pass.txt -e ssh -vrplogDtH /home/folder2 [email protected]:/home/folder1

it is not working let me know how to use it?


Thank you
 
Sep 22, 2006
5
0
151
i want to upload the backup to an ftp server, with sync. I saw the command's for uploading to ssh not to ftp.
Can anyone give me command to send the backup to ftp server, plz
 
Oct 19, 2004
15
0
151
rsync over/to ftp is not possible. If you want to send backup files to FTP, you can use the regular FTP backup configuration. In that case, you won't benefit from the rsyncable option. The full file archives will be copied over.
 

isputra

Well-Known Member
May 3, 2003
574
0
166
Mbelitar
OK, i change :

0 1 * * * /scripts/cpbackup

to:

0 1 * * * export GZIP="--rsyncable" ; /scripts/cpbackup

at crontab.

The question is what about Configure Backup at WHM ? What i must enabled and disabled ?

Mine is :
----------------------------------------
Backup Status: Enabled
Backup Interval: Daily
Backup Retention: Daily Weekly Monthly
Days to run backup: Sunday Monday Tuesday Wednesday Thursday Friday Saturday
Remount/Unmount backup drive: Disabled
Bail out if the backup drive cannot be mounted: Disabled
Incremental backup : Enabled
Backup Accounts: Enabled
Backup Config Files: Enabled
Sql Databases: Per Accounts Only
Backup Raw Access Logs: Disabled
Backup Type: Standard
Ftp Backup Host:
Ftp Backup User:
Ftp Backup Pass:
Ftp Backup Directory/Path:
Use Passive mode for Ftp transfers: Disabled
Backup Destination: /backup
-----------------------------------------
 

Lyttek

Well-Known Member
Jan 2, 2004
775
5
168
This whole rsync thread won't make any difference on backups you store on your local server, which is how you are currently configured (using the /backup partition/directory)

Only if you plan on using rsync to copy the backup files to another computer is this thread of any use.
 

Frankc

Well-Known Member
Jun 18, 2005
109
3
168
rsync over/to ftp is not possible. If you want to send backup files to FTP, you can use the regular FTP backup configuration. In that case, you won't benefit from the rsyncable option. The full file archives will be copied over.
I currently also use FTP but if I want to use the method via SSH what should I do to enable it please?
 

exo

Member
Oct 2, 2003
14
0
151
rsyncable option is now included in cpbackup by cPanel.

At least in version 11, so you may want to remove:

export GZIP="--rsyncable" ;

from your crontab, as gzip will choke about parameter "--rsyncable--rsyncable", once added by the line in crontab and the other one in the cpbackup script.
 

slapshotw

Registered
Sep 30, 2004
1
0
151
Does anybody else find that using the --rsyncable flag makes the backups take MUCH longer with more cpu used? Or is something going on with just me?
 

Lyttek

Well-Known Member
Jan 2, 2004
775
5
168
Quite likely it's being added elsewhere then, in a global, persistent variable perhaps?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
The latest CURRENT/EDGE should check that. Make sure you're up to date and that it's setup correctly in /etc/cpbackup.conf:

GZIPRSYNCOPTS --rsyncable
 

jayntguru

Member
May 14, 2004
17
0
151
Acworth, GA USA
So all I have to do is remove the crontab entry, and Cpanel should take care of the rsync-able backups on its own now? That's it?

Thanks,
 
Last edited:

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
I think this needs to be said loud and clear:

IF YOU USE CP11 YOUR BACKUPS WILL FAIL IF YOU IMPLEMENT THIS!

If you have implemented this and are on cp11 take it out!
 

ianmarie

Well-Known Member
Mar 27, 2006
56
0
156
so - have taken out the export etc command from crontab
and have tried to force - still same issue
now have removed GZIPRSYNCOPTS --rsyncable from cpbackup.conf
but each time I force, it rewrites cpbackup.conf and places the command back in
so - where else is it set, so I can force a backup without it falling over?
:)