Missing local backup tar with FTP backup option

nikak

Registered
Jun 2, 2011
2
0
51
Hi, sorry my english please,

Ï need make local backup and need know where cpbackup stores the tar file backup.

cpbackup process runs and work "perfectly" sending right the tarball by FTP. But when the process ends the local folders are empty. My log:

Code:
[cpbackup] Started at Thu Jun  2 04:00:01 2011
[cpbackup] backup point /home/cpbackuptmp/cpbackup/daily is 1.00 days old
[cpbackup] backup point /home/cpbackuptmp/cpbackup/weekly is 7.00 days old
[cpbackup] backup point /home/cpbackuptmp/cpbackup/monthly is 4.00 days old
[cpbackup] The following backups will be updated: daily,weekly
[cpbackup] Running account backup with target : /home/cpbackuptmp/cpbackup/daily
pkgacct started.
pkgacct version 10 - user : centros - tarball: 1 - target mysql : default - split: 0 - incremental: 0 - homedir: 1 - archive version: 3 - running with uid 0
pkgacct working dir : /home/cpbackuptmp/cpbackup/daily/centros
Copying Reseller Config...Done
Copying Suspension Info (if needed)...Done
Copying SSL Certificates, CSRS, and Keys...Done
Copying Domain Keys....Done
Copying Counter Data....Done
Copying Bandwidth Data......centros-pop3-rate.rrd....centrospc.com-http-peak.rrd....centros-smtp-rate.rrd....centros-all-peak.rrd....centros-http-peak.rrd....centros-all-rate.rrd....centros....centros-smtp-peak.rrd....centros-pop3-peak.rrd....centrospc.com....centrospc.com-all-peak.rrd....centrospc.com-all-rate.rrd....centros-imap-peak.rrd....centros-ftp-rate.rrd....centrospc.com-http-rate.rrd....centros-http-rate.rrd....centros-ftp-peak.rrd....centros-imap-rate.rrd..Done
Copying Dns Zones.......centrospc.com...Done
Copying Mail files....Done
Copying frontpage files....Done
Copying proftpd file....Done
Copy userdata...Done
Copy custom virtualhost templates...Done
Leaving timeout safety mode
Copying mailman lists and archives....Done
Copying homedir.............
Done
Entering timeout safety mode
Determining mysql dbs......mysql version: 5.1......mysqldump version: 5.1...Saving mysql privs...Done
...Done
Storing mysql dbs............
centros_db(20131 bytes) horde.turba_objects(1587 bytes) horde.horde_prefs(1579 bytes) horde.kronolith_events(1605 bytes) horde.kronolith_storage(1605 bytes) horde.mnemo_memos(1583 bytes) horde.nag_tasks(1575 bytes) ...Done
Copying cpuser file.......Done
Copying crontab file.......Done
Copying quota info.......Done
Storing Subdomains....
Done
Storing Parked Domains....
Done
Storing Addon Domains....
Done
Storing ssl domain......Done
Copying password.......Done
Copying shell.......Done
Creating Archive ....Done
[B]pkgacctfile is: /home/cpbackuptmp/cpbackup/daily/centros.tar.gz[/B]

size is: 30048335

homesize is: NA

Net::FTP=GLOB(0xdf4740)<<< 220-Welcome to Pure-FTPd.
Net::FTP=GLOB(0xdf4740)<<< 220-You are user number 4 of 5000 allowed.
Net::FTP=GLOB(0xdf4740)<<< 220-<<
Net::FTP=GLOB(0xdf4740)<<< 220-#########################################
Net::FTP=GLOB(0xdf4740)<<< 220-#                                       #
Net::FTP=GLOB(0xdf4740)<<< 220-#  Welcome on XXXXXXXXXXXXXX  #
Net::FTP=GLOB(0xdf4740)<<< 220-#                                       #
Net::FTP=GLOB(0xdf4740)<<< 220-#       - XXX dedicated servers -       #
Net::FTP=GLOB(0xdf4740)<<< 220-#                                       #
Net::FTP=GLOB(0xdf4740)<<< 220-#           http://www.XXXXXXX.com          #
Net::FTP=GLOB(0xdf4740)<<< 220-#                                       #
Net::FTP=GLOB(0xdf4740)<<< 220-#########################################
Net::FTP=GLOB(0xdf4740)<<< 220->>
Net::FTP=GLOB(0xdf4740)<<< 220-This is a private system - No anonymous login
Net::FTP=GLOB(0xdf4740)<<< 220-IPv6 connections are also welcome on this server.
Net::FTP=GLOB(0xdf4740)<<< 220 You will be disconnected after 15 minutes of inactivity.
Net::FTP=GLOB(0xdf4740)>>> USER XXXXXXXXXXXX
Net::FTP=GLOB(0xdf4740)<<< 331 User XXXXXXXXXXXX OK. Password required
Net::FTP=GLOB(0xdf4740)>>> PASS ....
Net::FTP=GLOB(0xdf4740)<<< 230-User XXXXXXXXXXXX has group access to:  100     
Net::FTP=GLOB(0xdf4740)<<< 230-OK. Current directory is /
Net::FTP=GLOB(0xdf4740)<<< 230 On Thu Jun  2 01:00:19 CEST 2011 space used : 88316 Kb - authorized : 102400000 Kb
Net::FTP=GLOB(0xdf4740)>>> TYPE I
Net::FTP=GLOB(0xdf4740)<<< 200 TYPE is now 8-bit binary
Net::FTP=GLOB(0xdf4740)>>> MKD cpbackup
Net::FTP=GLOB(0xdf4740)<<< 550 Can't create directory: File exists
Net::FTP=GLOB(0xdf4740)>>> MKD cpbackup/daily
Net::FTP=GLOB(0xdf4740)<<< 550 Can't create directory: File exists
Net::FTP=GLOB(0xdf4740)>>> CWD cpbackup/daily
Net::FTP=GLOB(0xdf4740)<<< 250 OK. Current directory is /cpbackup/daily
Net::FTP=GLOB(0xdf4740)>>> ALLO 30048335
Net::FTP=GLOB(0xdf4740)<<< 200 dc.w $4E71
Net::FTP=GLOB(0xdf4740)>>> PORT 94,23,249,181,234,158
Net::FTP=GLOB(0xdf4740)<<< 200 PORT command successful
Net::FTP=GLOB(0xdf4740)>>> STOR centros.tar.gz
Net::FTP=GLOB(0xdf4740)<<< 150 Connecting to port 60062
Net::FTP=GLOB(0xdf4740)<<< 226-File successfully transferred
Net::FTP=GLOB(0xdf4740)<<< 226 13.677 seconds (measured here), 2.10 Mbytes per second
Net::FTP=GLOB(0xdf4740)>>> QUIT
Net::FTP=GLOB(0xdf4740)<<< 221-Goodbye. You uploaded 29345 and downloaded 0 kbytes.
Net::FTP=GLOB(0xdf4740)<<< 221 Logout.
Net::FTP=GLOB(0xe0dec0)<<< 220-Welcome to Pure-FTPd.
Net::FTP=GLOB(0xe0dec0)<<< 220-You are user number 4 of 5000 allowed.
Net::FTP=GLOB(0xe0dec0)<<< 220-<<
Net::FTP=GLOB(0xe0dec0)<<< 220-#########################################
Net::FTP=GLOB(0xe0dec0)<<< 220-#                                       #
Net::FTP=GLOB(0xe0dec0)<<< 220-#  Welcome on XXXXXXXXXXXXXXXXX  #
Net::FTP=GLOB(0xe0dec0)<<< 220-#                                       #
Net::FTP=GLOB(0xe0dec0)<<< 220-#       - XXX dedicated servers -       #
Net::FTP=GLOB(0xe0dec0)<<< 220-#                                       #
Net::FTP=GLOB(0xe0dec0)<<< 220-#           http://www.XXXXXXXXX.com          #
Net::FTP=GLOB(0xe0dec0)<<< 220-#                                       #
Net::FTP=GLOB(0xe0dec0)<<< 220-#########################################
Net::FTP=GLOB(0xe0dec0)<<< 220->>
Net::FTP=GLOB(0xe0dec0)<<< 220-This is a private system - No anonymous login
Net::FTP=GLOB(0xe0dec0)<<< 220-IPv6 connections are also welcome on this server.
Net::FTP=GLOB(0xe0dec0)<<< 220 You will be disconnected after 15 minutes of inactivity.
Net::FTP=GLOB(0xe0dec0)>>> USER XXXXXXXXXXXXX
Net::FTP=GLOB(0xe0dec0)<<< 331 User XXXXXXXXXXXX OK. Password required
Net::FTP=GLOB(0xe0dec0)>>> PASS ....
Net::FTP=GLOB(0xe0dec0)<<< 230-User XXXXXXXXXXXXX has group access to:  100     
Net::FTP=GLOB(0xe0dec0)<<< 230-OK. Current directory is /
Net::FTP=GLOB(0xe0dec0)<<< 230 On Thu Jun  2 01:00:19 CEST 2011 space used : 88316 Kb - authorized : 102400000 Kb
Net::FTP=GLOB(0xe0dec0)>>> TYPE I
Net::FTP=GLOB(0xe0dec0)<<< 200 TYPE is now 8-bit binary
Net::FTP=GLOB(0xe0dec0)>>> MKD cpbackup
Net::FTP=GLOB(0xe0dec0)<<< 550 Can't create directory: File exists
Net::FTP=GLOB(0xe0dec0)>>> MKD cpbackup/weekly
Net::FTP=GLOB(0xe0dec0)<<< 550 Can't create directory: File exists
Net::FTP=GLOB(0xe0dec0)>>> CWD cpbackup/weekly
Net::FTP=GLOB(0xe0dec0)<<< 250 OK. Current directory is /cpbackup/weekly
Net::FTP=GLOB(0xe0dec0)>>> ALLO 30048335
Net::FTP=GLOB(0xe0dec0)<<< 200 dc.w $4E71
Net::FTP=GLOB(0xe0dec0)>>> PORT 94,23,249,181,137,237
Net::FTP=GLOB(0xe0dec0)<<< 200 PORT command successful
Net::FTP=GLOB(0xe0dec0)>>> STOR centros.tar.gz
Net::FTP=GLOB(0xe0dec0)<<< 150 Connecting to port 35309
Net::FTP=GLOB(0xe0dec0)<<< 226-File successfully transferred
Net::FTP=GLOB(0xe0dec0)<<< 226 23.374 seconds (measured here), 1.23 Mbytes per second
Net::FTP=GLOB(0xe0dec0)>>> QUIT
Net::FTP=GLOB(0xe0dec0)<<< 221-Goodbye. You uploaded 29345 and downloaded 0 kbytes.
Net::FTP=GLOB(0xe0dec0)<<< 221 Logout.
[cpbackup] Copying daily backups to weekly backups for retention
[cpbackup] The following backups were already up to date: monthly
[cpbackup] Completed at Thu Jun  2 04:00:45 2011
Notification => xxxxxxxxxxxxxxxxxxxxxxx via EMAIL [level => 2]
WHM config:

http://www.centrospc.com/pub/cpbackup.PNG


/home/cpbackuptmp/cpbackup/daily ,weekly, montlhy only contains cfg files.

/backup and /home/centros/backup was manually created but are empty too ...

cpbackup deletes /home/cpbackuptmp/cpbackup/daily/centros.tar.gz after upload to FTP ? how avoid this ?



thx !
 
Last edited:

nikak

Registered
Jun 2, 2011
2
0
51
One way could be an /scripts/precpbackup for make a local backup before the FTP Backup. Or scripts/postcpbackup... (better pre I think....)

But i have no idea how does that :(