Re: [BackupPC-users] problem with linux client
2008-12-23 18:14:45
Anand Gupta wrote:
> Hi Les,
>
> Thanks for the link. I see BackupPC_tarCreate and BackupPC_zipCreate
> for tar and zip. Is there an rsync version ? So instead of creating a
> tar or zip, it can rsync the data over to another location ?
>
> The reason i asked is because the amount of data i am going to backup
> is 1T+ and thus creating a tar of the same would be unnecessary time
> consuming job, whereas infact i would only want to rsync the data
> across to another location.
>
> My main motive is incase i don't have access to a browser, i can
> still restore files using console. My backup server runs behind a
> firewall, i only have console access to the server.
You are probably best off tunneling HTTP through your SSH connection
(assuming you don't really mean "console" access over a serial line), or
installing the Lynx browser on the server, and using that. If neither
of those options work for some reason, I'll you can use wget from the
server's command line.
The wrapping on this might get ugly (make sure the command is all on one
line and that the post-data has NO spaces in it)...
/usr/bin/wget --http-user=${MYBACKUPPCLOGIN}
--http-password=${MYBACKUPPCPASSWORD}
--post-data='host=${HOSTTORESTORE}&hostDest=${HOSTTORESTORE}&shareDest=${SHARE}&pathHdr=${PATH}&num=${BACKUPNUMBER}&type=4&action=Restore&fcb0=${FILE1}&fcb1=${FILE2}&fcbMax=144&share=${SHARE}'
http://127.0.0.1/cgi-bin/BackupPC_Admin
Replace anything that looks like ${VARIABLE} with arguments that are
reasonable for your install.
${SHARE} is the rsync share
${PATH} is the path within the rsync share
${BACKUPNUMBER} is the backup number to use (-1 for the latest, -2 for
the one before that or you can explicitly specify it)
${FILE1} is the filename within ${SHARE} (I can't remember if it
requires the full path or just the filename) to restore. Increment the
number after fcb for each file. I think specifying a folder will
recursively restore the folder and all files under it.
Hopefully the rest are self explanatory.
Basically this tells wget to POST the data in specified by the
--post-data argument to the BackupPC_Admin script interpreted by the web
server on localhost, and to use the HTTP credentials specified by
http-user and http-password. Just what your browser would do.
Yeah. Using Lynx is a much better option.
>
> -- Thanks and Regards,
>
> Anand
Chris
------------------------------------------------------------------------------
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [BackupPC-users] new to backuppc, (continued)
- Re: [BackupPC-users] new to backuppc, Jeffrey J. Kosowsky
- Re: [BackupPC-users] new to backuppc, Anand Gupta
- Re: [BackupPC-users] new to backuppc, Les Mikesell
- [BackupPC-users] problem with linux client, Anand Gupta
- Re: [BackupPC-users] problem with linux client, Les Mikesell
- Re: [BackupPC-users] problem with linux client, Anand Gupta
- Re: [BackupPC-users] problem with linux client, Les Mikesell
- Re: [BackupPC-users] problem with linux client, Anand Gupta
- Re: [BackupPC-users] problem with linux client,
Chris Robertson <=
- Re: [BackupPC-users] problem with linux client, Les Mikesell
- Re: [BackupPC-users] problem with linux client, Anand Gupta
- Re: [BackupPC-users] new to backuppc, Renke Brausse
|
|
|