В Пнд, 24/01/2011 в 05:48 -0800, Randy Katz пишет: > On 1/24/2011 5:32 AM, Rubik Andrey wrote: > > В Пнд, 24/01/2011 в 05:15 -0800, Randy Katz пишет: > >> On 1/24/2011 5:04 AM, Rubik Andrey wrote: > >>> В Пнд, 24/01/2011 в 04:22 -0800, Randy Katz пишет: > >>>> ls -l /test > >>> ls -l /test > >>> итого 4 > >>> -rw-r--r-- 1 root root 29 Янв 24 13:39 111.txt > >>> > >>> > >>> ls -l / | grep test > >>> drwxrwxrwx 2 bacula bacula 4096 Янв 24 13:39 test > >>> > >>> > >>> And what i want to restore (results of command "lsmart" when a do > >>> "restore all" command in bconsole): > >>> > >>> cwd is: / > >>> $ lsmark > >>> *test/ > >>> *1.txt > >>> *111.txt > >>> *2.txt > >>> > >> did you restore all, enter the jobid and verify the where and run it? > >> What files did it show restoring on the screen, if any? > >> > >> > >> > >> ------------------------------------------------------------------------------ > >> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > >> Finally, a world-class log management solution at an even better > >> price-free! > >> Download using promo code Free_Logger_4_Dev2Dev. Offer expires > >> February 28th, so secure your free ArcSight Logger TODAY! > >> http://p.sf.net/sfu/arcsight-sfd2d > >> _______________________________________________ > >> Bacula-users mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/bacula-users > > There is what I do: > > > > *restore all > > > > Automatically selected Catalog: MyCatalog > > Using Catalog "MyCatalog" > > > > First you select one or more JobIds that contain files > > to be restored. You will be presented several methods > > of specifying the JobIds. Then you will be allowed to > > select which files from those JobIds are to be restored. > > > > To select the JobIds, you have the following choices: > > 1: List last 20 Jobs run > > 2: List Jobs where a given File is saved > > 3: Enter list of comma separated JobIds to select > > 4: Enter SQL list command > > 5: Select the most recent backup for a client > > 6: Select backup for a client before a specified time > > 7: Enter a list of files to restore > > 8: Enter a list of files to restore before a specified time > > 9: Find the JobIds of the most recent backup for a client > > 10: Find the JobIds for a backup for a client before a specified > > time > > 11: Enter a list of directories to restore for found JobIds > > 12: Select full restore to a specified Job date > > 13: Cancel > > Select item: (1-13): 5 > > Defined Clients: > > 1: my.host.com > > > > Select the Client (1-19): 1 > > The defined FileSet resources are: > > 1: Catalog > > 2: Full Set > > 3: Test Set > > Select FileSet resource (1-3): 3 > > +-------+-------+----------+----------+---------------------+--------------+ > > | JobId | Level | JobFiles | JobBytes | StartTime | VolumeName > > | > > +-------+-------+----------+----------+---------------------+--------------+ > > | 60 | F | 3 | 8 | 2011-01-21 16:25:02 | bacula > > | > > | 113 | D | 2 | 10 | 2011-01-23 23:35:21 | bacula > > | > > | 147 | I | 2 | 5 | 2011-01-24 13:37:18 | bacula > > | > > | 152 | I | 2 | 29 | 2011-01-24 14:21:56 | > > bacula-label | > > +-------+-------+----------+----------+---------------------+--------------+ > > You have selected the following JobIds: 60,113,147,152 > > > > Building directory tree for JobId(s) 60,113,147,152 ... > > 3 files inserted into the tree and marked for extraction. > > > > You are now entering file selection mode where you add (mark) and > > remove (unmark) files to be restored. No files are initially added, > > unless > > you used the "all" keyword on the command line. > > Enter "done" to leave this mode. > > > > cwd is: / > > $ lsmark > > *test/ > > *1.txt > > *111.txt > > *2.txt > > $ done > > Bootstrap records written to /var/lib/bacula/bacula-dir.restore.5.bsr > > > > The job will require the following > > Volume(s) Storage(s) SD Device(s) > > =========================================================================== > > > > bacula bacula-sd > > FileStorage > > bacula-label bacula-sd > > FileStorage > > > > Volumes marked with "*" are online. > > > > > > 4 files selected to be restored. > > > > The defined Restore Job resources are: > > 1: RestoreFiles > > 2: TestRestoreFiles > > > > Select Restore Job (1-2): 2 > > Run Restore job > > JobName: TestRestoreFiles > > Bootstrap: /var/lib/bacula/bacula-dir.restore.5.bsr > > Where: /var/lib/bacula-restores > > Replace: always > > FileSet: Test Set > > Backup Client: my.host.com > > Restore Client: my.host.com > > Storage: bacula-sd > > When: 2011-01-24 16:27:22 > > Catalog: MyCatalog > > Priority: 10 > > Plugin Options: *None* > > OK to run? (yes/mod/no): yes > > Job queued. JobId=156 > > *messages > > 24-Янв 16:27 bacula-dir JobId 156: Start Restore Job > > TestRestoreFiles.2011-01-24_16.27.24_39 > > 24-Янв 16:27 bacula-dir JobId 156: Using Device "FileStorage" > > 24-Янв 16:27 bacula-sd JobId 156: Ready to read from volume "bacula" on > > device "FileStorage" (/backup). > > 24-Янв 16:27 bacula-sd JobId 156: Forward spacing Volume "bacula" to > > file:block 0:4115438792. > > 24-Янв 16:27 bacula-sd JobId 156: End of Volume at file 0 on device > > "FileStorage" (/backup), Volume "bacula" > > 24-Янв 16:27 bacula-sd JobId 156: Ready to read from volume > > "bacula-label" on device "FileStorage" (/backup). > > 24-Янв 16:27 bacula-sd JobId 156: Forward spacing Volume "bacula-label" > > to file:block 0:197. > > 24-Янв 16:27 bacula-sd JobId 156: End of Volume at file 0 on device > > "FileStorage" (/backup), Volume "bacula-label" > > 24-Янв 16:27 bacula-sd JobId 156: End of all volumes. > > 24-Янв 16:27 bacula-dir JobId 156: Bacula bacula-dir 5.0.3 (04Aug10): > > 24-Янв-2011 16:27:27 > > Build OS: x86_64-pc-linux-gnu gentoo > > JobId: 156 > > Job: TestRestoreFiles.2011-01-24_16.27.24_39 > > Restore Client: my.host.com > > Start time: 24-Янв-2011 16:27:26 > > End time: 24-Янв-2011 16:27:27 > > Files Expected: 4 > > Files Restored: 4 > > Bytes Restored: 37 > > Rate: 0.0 KB/s > > FD Errors: 0 > > FD termination status: OK > > SD termination status: OK > > Termination: Restore OK > > > > 24-Янв 16:27 bacula-dir JobId 156: Begin pruning Jobs older than 6 > > months . > > 24-Янв 16:27 bacula-dir JobId 156: No Jobs found to prune. > > 24-Янв 16:27 bacula-dir JobId 156: Begin pruning Jobs. > > 24-Янв 16:27 bacula-dir JobId 156: No Files found to prune. > > 24-Янв 16:27 bacula-dir JobId 156: End auto prune. > > > > * > > > > > > > > > hm, what are the perms on /var/lib/bacula-restores > assuming you are not running as root, right? > > Also look in the log /var/bacula/working/log for something like this > and the surrounding entries: RestoreFiles.2011-01-24_03.02.25_08 > > Of note I just backed up and restored a 2MB batch of files and the lines > in my log look almost exactly like your log so I am not sure where your > files > are going. You should also tail -f any system logs to see if there is > anything strange > in them. > >
ls -l /var/lib/ | grep bacula drwxr-xr-x 2 bacula root 4096 2011-01-24 16:27 bacula drwxr-xr-x 2 bacula root 4096 2011-01-24 14:33 bacula-restores getfattr /var/lib/bacula-restores/ getfacl /var/lib/bacula-restores/ getfacl: Removing leading '/' from absolute path names # file: var/lib/bacula-restores/ # owner: bacula # group: root user::rwx group::r-x other::r-x I try "chmod -R 777 /var/lib/bacula-restores/" and restore, but get nothing again. I working with root privileges: # whoami root A can't log in as bacula user: cat /etc/passwd | grep bacula bacula:x:105:444:added by portage for bacula:/var/lib/bacula:/sbin/nologin And can't run bconsole as non-superuser user (from which user I should run bconsole?): user $ bconsole bconsole: command not found A haven't directory /var/bacula/ (I use gentoo and build bacula from portage): stat /var/bacula/ stat: cannot stat `/var/bacula/': Нет такого файла или каталога I have all system log in /var/log/messages: tail -n 100 /var/log/messages | grep bacula-dir Jan 24 17:03:31 bacula bacula-dir: 24-Янв 17:03 Message delivery ERROR: Mail prog: localhost.localdomain --> QUIT Jan 24 17:03:31 bacula bacula-dir: 24-Янв 17:03 Message delivery ERROR: Mail prog: x.x.x.x <-- 221 mail.x.com closing connection Jan 24 17:03:31 bacula bacula-dir: 24-Янв 17:03 Message delivery ERROR: Mail prog: bsmtp: bsmtp.c:143-0 x.x.x.x --> 221 mail.x.com closing connection -- Best regards Rubik Andrey email: [email protected] GPGKey: 1024D / 2EA8E207 2010-03-01 7E60 4450 CD90 6E2D E949 6254 7FDC 5F5C 2EA8 E207
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
