Remote ftp backup not doing weekly, monthly

hostseeker

Well-Known Member
Sep 4, 2001
86
0
306
I was able to get the Cpanel remote FTP backup to work, however it does not send anything but daily. Is this the way it is supposed to work? I need monthly and weekly also.

If not, is there a script anyone can recommend that will ftp the daily, monthly, and weekly (but will check to see if each is curent before sending because there is no need to resend the weekly and monthly each day)

Question 3: How do you set up the remote FTP to go to a directory that is not web viewable, such as the directory /backup on the remote server? The way I have it set up now, it goes to an account on my server, which makes it less secure for the data.

Thanks! (I have searched and read a lot today about this in this forum, but couldn't find any answers)
 

hostingmetro

Active Member
PartnerNOC
May 30, 2003
40
0
156
Go to /home/cpbackuptmp/cpbackup in SSH shell and look at the dates of the daily, weekly, and monthly directory. The cpbackup script looks at the dates of those directory. So for example, I'm doing weekly and monthly so the lines:

if (isolderthen(6,"${basedir}/weekly")) {

and

if (! -e "${basedir}/monthly" || isolderthen(29,"${basedir}/monthly"))

checks to see if the directory is older than 6 days (weekly) or 29 days (monthly), if it is, then the backup runs.

The only problem I have is the weekly backup ran on 04/04/04 and it updated the weekly directory to that date. But the odd thing is the monthly directory was also updated to that same date so of course it never runs.

Bug?
 

gsbe

Active Member
Jul 27, 2003
39
0
156
Nashville, TN
Any solution to this problem? I'm having the same issue (only backing up daily, not weekly and monthly).

I have been using the FTP backups for over a month. The backups to the local machine are not running correctly either(hasn't been backing up locally anything but dailies in over a month). I need more help with this feature...thanks in advance.
 

hahomdal

Registered
Sep 1, 2003
1
0
151
Oslo, Norway
I've also experienced this problem on three servers doing ftp backups. The daily backups work fine, but weekly and monthly backups aren't done.
Previous backups using nfs worked fine.

Looking at the xferlogs, it doesn't seem like the backup-script even tries to check anything related to the weekly and monthly directories. This seems to be supported by the logs when running cpbackup manually:

Net::FTP=GLOB(0x83aaac4)<<< 220 ProFTPD 1.2.9 Server (ProFTPD) [<obfuscated>]
Net::FTP=GLOB(0x83aaac4)>>> user <obfuscated>
Net::FTP=GLOB(0x83aaac4)<<< 331 Password required for <obfuscated>.
Net::FTP=GLOB(0x83aaac4)>>> PASS ....
Net::FTP=GLOB(0x83aaac4)<<< 230 User <obfuscated> logged in.
Net::FTP=GLOB(0x83aaac4)>>> TYPE I
Net::FTP=GLOB(0x83aaac4)<<< 200 Type set to I

Net::FTP=GLOB(0x83aaac4)>>> MKD cpbackup
Net::FTP=GLOB(0x83aaac4)<<< 550 cpbackup: File exists
Net::FTP=GLOB(0x83aaac4)>>> MKD cpbackup/daily
Net::FTP=GLOB(0x83aaac4)<<< 550 cpbackup/daily: File exists
Net::FTP=GLOB(0x83aaac4)>>> CWD cpbackup/daily
Net::FTP=GLOB(0x83aaac4)<<< 250 CWD command successful.
Net::FTP=GLOB(0x83aaac4)>>> ALLO 96124729
Net::FTP=GLOB(0x83aaac4)<<< 202 No storage allocation necessary.
Net::FTP=GLOB(0x83aaac4)>>> PORT 62,70,XX,XX,216,176
Net::FTP=GLOB(0x83aaac4)<<< 200 PORT command successful
Net::FTP=GLOB(0x83aaac4)>>> STOR <obfuscated>.tar.gz
Net::FTP=GLOB(0x83aaac4)<<< 150 Opening BINARY mode data connection for <obfuscated>.tar.gz
Net::FTP=GLOB(0x83aaac4)<<< 226 Transfer complete.
Net::FTP=GLOB(0x83aaac4)>>> QUIT
Net::FTP=GLOB(0x83aaac4)<<< 221 Goodbye.

As the previous poster said - this feature is highly desired! Whether this is a bug or a missing feature, I won't decide as of yet, but the least we should be able to expect, is to be informed of the implications of running ftp backups.

Hans
 

beekeeper

Active Member
Apr 28, 2003
44
0
156
Melbourne, Australia
No Weekly nor Monthly

I have the same problem; daily backups are fine but no weekly nor monthly backups.

I rarely get asked to do any account file restores so I have not bothered to check our remote backups server for months.

The backup server is not a big cost but having only a daily backup without weekly or monthly gives me a pretty limited scope for restores.

Has anyone managed to configure and realise daily, weekly and monthly backups?
 

beekeeper

Active Member
Apr 28, 2003
44
0
156
Melbourne, Australia
No Weekly nor Monthly

I have the same problem; daily backups are fine but no weekly nor monthly backups.

I rarely get asked to do any account file restores so I have not bothered to check our remote backups server for months.

The backup server is not a big cost but having only a daily backup without weekly or monthly gives me a pretty limited scope for restores.

Has anyone managed to configure and realise daily, weekly and monthly backups?
 

telman

Registered
Jun 4, 2004
2
0
151
hostseeker said:
I was able to get the Cpanel remote FTP backup to work, however it does not send anything but daily. Is this the way it is supposed to work? I need monthly and weekly also.

If not, is there a script anyone can recommend that will ftp the daily, monthly, and weekly (but will check to see if each is curent before sending because there is no need to resend the weekly and monthly each day)

Question 3: How do you set up the remote FTP to go to a directory that is not web viewable, such as the directory /backup on the remote server? The way I have it set up now, it goes to an account on my server, which makes it less secure for the data.

Thanks! (I have searched and read a lot today about this in this forum, but couldn't find any answers)

How did you do that? Even I can not make daily backup work.

1. Task is not added to cron job,
2. When I run backup task manually it creates files on temp directory but no data is being sent to remote ftp server.


Thanks,
Telman
 

kmsd

Well-Known Member
May 21, 2003
73
0
156
Same issue here.
And issue of disk quota exceeded if user doesn't have double his resources available to make the backup.
 

kiko0123

Member
Feb 1, 2004
14
0
151
it would be good also

that when we need to restore backups and that the backups are on a remote ftp account

the ability to autotransfert directly from whm the files and to restore

cause actualy you got to manualy move then to your server and then restaure...