Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy
Hi, Hendrik Friedel wrote on 2008-09-11 23:34:30 +0200 [Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy]: > >screen > > > >then run command > > > >when it is running, do a Ctrl-A then D which will disconnect that screen. > > > >to get back to it, do > >screen -R > > That's not exactly what I need. I believe it is. > After starting the task, I end my ssh connection. Right. That is where screen comes in. Unless you have more output than screen's buffer will keep (see the '-h' flag to change that). > After some hours, I want to see the output of the task. The good thing about screen is that you immediately see if the task is still running and if and with which error it finished. > For some > reason, piping it to a logfile does not work. So how can I write a logfile? You need to redirect stderr ... % command >& /some/file ... or in case you really mean "piping" ... bash% command 2>&1 | second_command csh% command |& second_command Regards, Holger - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy
Hi Holger, > >screen > > > >then run command > > > >when it is running, do a Ctrl-A then D which will disconnect that screen. > > > >to get back to it, do > >screen -R > > That's not exactly what I need. After starting the task, I end my ssh > connection. After some hours, I want to see the output of the task. For some > reason, piping it to a logfile does not work. So how can I write a logfile? That's what screen is for. You start your command _inside_ screen. Then detach from the screen (which leaves the command running), then close your ssh connection. When you connect back, you re-atach to screen using -R and get back. Screen is a terminal multiplexer. It's like VMware for terminals. :-) Tino. -- "What we nourish flourishes." - "Was wir nähren erblüht." www.craniosacralzentrum.de www.forteego.de - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy
Hello, > Yes this should work, eg; > > BackupPC_tarPCCopy /var/lib/backuppc/pc/HOST | (cd > /new/backuppc/pc && tar xPf -) That works. Thanks! >screen > >then run command > >when it is running, do a Ctrl-A then D which will disconnect that screen. > >to get back to it, do >screen -R That's not exactly what I need. After starting the task, I end my ssh connection. After some hours, I want to see the output of the task. For some reason, piping it to a logfile does not work. So how can I write a logfile? Greetings, Hendrik - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy
Hendrik writes: > Furthermore: Would it be possible to limit the BackupPC_tarPCCopy command to > one host only? Yes this should work, eg; BackupPC_tarPCCopy /var/lib/backuppc/pc/HOST | (cd /new/backuppc/pc && tar xPf -) Note: the extract still starts at the pc directory, not pc/HOST. Using your paths you an do this: cd /mnt/sda5/BackupPC/pc ; /usr/BackupPC/bin/BackupPC_tarPCCopy /var/lib/BackupPC/pc/HOST |tar xvPF - Craig - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy
screen then run command when it is running, do a Ctrl-A then D which will disconnect that screen. to get back to it, do screen -R On Tue, Sep 9, 2008 at 10:40 AM, Nils Breunese (Lemonbit) <[EMAIL PROTECTED] > wrote: > Hendrik Friedel wrote: > > > This takes ages, which is ok, but I'm logged in to the server via > > ssh, so > > that using the nohup command would be useful. This has the drawback, > > that > > the nohup.out is empty, so that I cannot monitor the process. > > Install screen and see 'man screen'. Other than that I believe the > general advice for moving your BackupPC data is to use dd and > filesystem resize tools instead of programs that operate on files and > links, which - as you are experiencing - can take forever. > > Nils Breunese. > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > BackupPC-users mailing list > BackupPC-users@lists.sourceforge.net > List:https://lists.sourceforge.net/lists/listinfo/backuppc-users > Wiki:http://backuppc.wiki.sourceforge.net > Project: http://backuppc.sourceforge.net/ > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Question regarding BackupPC_tarPCCopy
Hendrik Friedel wrote: > This takes ages, which is ok, but I'm logged in to the server via > ssh, so > that using the nohup command would be useful. This has the drawback, > that > the nohup.out is empty, so that I cannot monitor the process. Install screen and see 'man screen'. Other than that I believe the general advice for moving your BackupPC data is to use dd and filesystem resize tools instead of programs that operate on files and links, which - as you are experiencing - can take forever. Nils Breunese. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Question regarding BackupPC_tarPCCopy
Hello, I moved the data of my backups according to the wiki (rsync -a). Now, I'm trying to restore the symlinks. For that I issue these commands: cd /mnt/sda5/BackupPC/pc ; /usr/BackupPC/bin/BackupPC_tarPCCopy /var/lib/BackupPC/pc/ |tar xvPF - This takes ages, which is ok, but I'm logged in to the server via ssh, so that using the nohup command would be useful. This has the drawback, that the nohup.out is empty, so that I cannot monitor the process. Furthermore: Would it be possible to limit the BackupPC_tarPCCopy command to one host only? Greetings, Hendrik - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/