Hello.
I'm trying to do backup with DumpPreUserCmd.
This command is like: curl -s -u login:password -o /home/backuppc/mydir/myfile.zip http://$host/path/to/api
and then xfer method tar from /home/backuppc/mydir
curl download data, but output file is zero size. this end with error of zero data backuped.
with curl -v I can see, that downloading goes without errors and conpletes with real size of file.
I have no idea how to find reason to such error. Any help?
I use bpc in docker. version - 4.4.0
also attached xfer log
XferLOG file /data/backuppc/pc/myhos1/XferLOG.0.z created 2022-03-10 16:51:11 Backup prep: type = full, case = 6, inPlace = 1, doDuplicate = 0, newBkupNum = 0, newBkupIdx = 0, lastBkupNum = , lastBkupIdx = (FillCycle = 0, noFillCnt = ) Executing DumpPreUserCmd: /usr/bin/curl -v -u login:password -o /home/backuppc/mydir/10.10.12.12.tar http://10.10.12.12:80/api/backup * Trying 10.10.12.12:80... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Connected to 10.10.12.12 (10.10.12.12) port 80 (#0) * Server auth using Basic with user 'login' > GET /api/backup HTTP/1.1 > Host: 10.10.12.12:80 > Authorization: Basic <REDACTED> > User-Agent: curl/7.80.0 > Accept: */* > 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Server: nginx/1.14.0 (Ubuntu) < Date: Thu, 10 Mar 2022 13:51:11 GMT < Content-Type: application/x-tar < Content-Length: 18964480 < Connection: keep-alive < Content-Disposition: attachment; filename=config.tar < Last-Modified: Thu, 10 Mar 2022 13:51:11 GMT < Cache-Control: public, max-age=43200 < Expires: Fri, 11 Mar 2022 01:51:11 GMT < ETag: "1646920271.45-18964480-1079051991" < Set-Cookie: sessionid=c534a7a4661249e9a282614a9e0fa843; Path=/ < { [2361 bytes data] 1 18.0M 1 359k 0 0 312k 0 0:00:59 0:00:01 0:00:58 311k 4 18.0M 4 869k 0 0 404k 0 0:00:45 0:00:02 0:00:43 404k 7 18.0M 7 1439k 0 0 455k 0 0:00:40 0:00:03 0:00:37 455k 10 18.0M 10 1946k 0 0 468k 0 0:00:39 0:00:04 0:00:35 468k 12 18.0M 12 2405k 0 0 466k 0 0:00:39 0:00:05 0:00:34 485k 14 18.0M 14 2749k 0 0 441k 0 0:00:41 0:00:06 0:00:35 471k 16 18.0M 16 3027k 0 0 422k 0 0:00:43 0:00:07 0:00:36 430k 18 18.0M 18 3469k 0 0 425k 0 0:00:43 0:00:08 0:00:35 406k 20 18.0M 20 3881k 0 0 422k 0 0:00:43 0:00:09 0:00:34 384k 21 18.0M 21 4052k 0 0 398k 0 0:00:46 0:00:10 0:00:36 328k 27 18.0M 27 5018k 0 0 449k 0 0:00:41 0:00:11 0:00:30 459k 30 18.0M 30 5650k 0 0 464k 0 0:00:39 0:00:12 0:00:27 525k 33 18.0M 33 6202k 0 0 471k 0 0:00:39 0:00:13 0:00:26 547k 35 18.0M 35 6558k 0 0 463k 0 0:00:39 0:00:14 0:00:25 538k 37 18.0M 37 6961k 0 0 459k 0 0:00:40 0:00:15 0:00:25 582k 40 18.0M 40 7424k 0 0 459k 0 0:00:40 0:00:16 0:00:24 480k 42 18.0M 42 7853k 0 0 457k 0 0:00:40 0:00:17 0:00:23 440k 44 18.0M 44 8281k 0 0 456k 0 0:00:40 0:00:18 0:00:22 415k 47 18.0M 47 8782k 0 0 458k 0 0:00:40 0:00:19 0:00:21 445k 49 18.0M 49 9244k 0 0 458k 0 0:00:40 0:00:20 0:00:20 457k 51 18.0M 51 9607k 0 0 454k 0 0:00:40 0:00:21 0:00:19 437k 54 18.0M 54 9.8M 0 0 448k 0 0:00:41 0:00:22 0:00:19 415k 57 18.0M 57 10.3M 0 0 458k 0 0:00:40 0:00:23 0:00:17 465k 59 18.0M 59 10.8M 0 0 459k 0 0:00:40 0:00:24 0:00:16 461k 62 18.0M 62 11.2M 0 0 459k 0 0:00:40 0:00:25 0:00:15 464k 64 18.0M 64 11.7M 0 0 460k 0 0:00:40 0:00:26 0:00:14 485k 67 18.0M 67 12.2M 0 0 461k 0 0:00:40 0:00:27 0:00:13 527k 70 18.0M 70 12.7M 0 0 463k 0 0:00:39 0:00:28 0:00:11 487k 73 18.0M 73 13.2M 0 0 464k 0 0:00:39 0:00:29 0:00:10 490k 75 18.0M 75 13.6M 0 0 460k 0 0:00:40 0:00:30 0:00:10 464k 77 18.0M 77 14.0M 0 0 460k 0 0:00:40 0:00:31 0:00:09 464k 80 18.0M 80 14.5M 0 0 464k 0 0:00:39 0:00:32 0:00:07 478k 83 18.0M 83 15.0M 0 0 463k 0 0:00:39 0:00:33 0:00:06 466k 86 18.0M 86 15.5M 0 0 466k 0 0:00:39 0:00:34 0:00:05 481k 88 18.0M 88 16.0M 0 0 465k 0 0:00:39 0:00:35 0:00:04 498k 92 18.0M 92 16.7M 0 0 475k 0 0:00:38 0:00:36 0:00:02 565k 95 18.0M 95 17.2M 0 0 475k 0 0:00:38 0:00:37 0:00:01 549k100 18.0M 100 18.0M 0 0 486k 0 0:00:38 0:00:38 --:--:-- 636k * Connection #0 to host 10.10.12.12 left intact Running: env LC_ALL=C /usr/bin/tar -c -v -f - -C /home/backuppc/mydir/ --totals ./10.10.12.12.tar full backup started for directory /home/backuppc/mydir/ Xfer PIDs are now 605,604 Exec failed for env LC_ALL=C /usr/bin/tar -c -v -f - -C /home/backuppc/mydir/ --totals ./10.10.12.12.tar readOutput: sysread returns 0 and got EOF tarExtract: /usr/local/BackupPC/bin/BackupPC_tarExtract: got Full = 1 tarExtract: /usr/local/BackupPC/bin/BackupPC_tarExtract starting... (XferLogLevel = 4) tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 5 inodeLast Xfer PIDs are now Got fatal error during xfer (No files dumped for share /home/backuppc/mydir/) Backup aborted (No files dumped for share /home/backuppc/mydir/) BackupFailCleanup: nFilesTotal = 0, type = full, BackupCase = 6, inPlace = 1, lastBkupNum = BackupFailCleanup: inPlace with no new files... no cleanup Running BackupPC_refCountUpdate -h myhos1 -f on myhos1 Xfer PIDs are now 611 BackupPC_refCountUpdate: host myhos1 #0: gotFsck = 1, gotDelta = , gotPoolCnt = 1, gotNoPoolCntOk = BackupPC_refCountUpdate: processing host myhos1 #0 (fsck = 1) BackupPC_refCountUpdate: processing host myhos1 #0 deltaFile /data/backuppc/pc/myhos1/0/refCnt/poolCntDelta_1_0_0_611 with 1 entries bpc_poolRefFileRead: got 1 entries (nRead = 23) BackupPC_refCountUpdate: computing totals for host myhos1 bpc_poolRefFileRead: got 1 entries (nRead = 23) BackupPC_refCountUpdate: host myhos1 got 0 errors (took 0 secs) BackupPC_refCountUpdate total errors: 0 Xfer PIDs are now Finished BackupPC_refCountUpdate (running time: 0 sec) Xfer PIDs are now
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/