[mylvmbackup] Re: Rsync

I haven't done much perl programming, but does opening a remote file require
a module like File::Remote to be present?

http://search.cpan.org/~nwiger/File-Remote-1.17/Remote.pm

On Thu, Jun 19, 2008 at 11:24 AM, Davy Campano <dcampano@xxxxxxxxx> wrote:

> I'm still not able to do a successful backup even with that 1 line copied.
> It looks as though the script is trying to also create files on the remote
> machine and they fail.  Below is my output:
>
> [root@db2 ~]# mylvmbackup --backuptype=rsync --vgname=lvm_volume_1
> --lvname=lvm_logical_mysql --backupdir=web3:/backups --relpath=mysql
> 20080618 13:31:10 Info: Connecting to database...
> 20080618 13:31:10 Info: Flushing tables with read lock...
> 20080618 13:31:10 Info: Taking position record...
> 20080618 13:31:10 Error: Cannot open
> web3:/backups/pos/backup-20080618_133110_mysql.pos for writing: No such file
> or directory
> Uncaught exception from user code:
>         Cannot open web3:/backups/pos/backup-20080618_133110_mysql.pos for
> writing: No such file or directory at /usr/local/bin/mylvmbackup line 413.
>  at /usr/local/bin/mylvmbackup line 413
>         mylvmbackup::create_pos_file('DBI::db=HASH(0x135a2350)') called at
> /usr/local/bin/mylvmbackup line 205
>
>
> On Thu, Jun 19, 2008 at 6:53 AM, Lenz Grimmer <lenz@xxxxxxxxxxx> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi,
>>
>> On 06/18/2008 07:40 PM, Robin H. Johnson wrote:
>>
>> > Weird, looks like a bit of code on my machines isn't in the latest
>> > versions.
>> > check_dir($backupdir,'backupdir') unless ($backupdir =~ /::/ and
>> $backuptype eq 'rsync');
>>
>> It's not - could you send me a patch for that? Thanks!
>>
>> Bye,
>>        LenZ
>> - --
>> - ------------------------------------------------------------------
>>  Lenz Grimmer <lenz@xxxxxxxxxxx>                             -o)
>>  [ICQ: 160767607 | Jabber: LenZGr@xxxxxxxxxx]                /\\
>>  http://www.lenzg.org/                                       V_V
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.9 (GNU/Linux)
>> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>>
>> iD8DBQFIWjqYSVDhKrJykfIRAlJIAJwPEICYoKXUI4m0i0edlunD/uyhNACdGNRw
>> pT6ltE4x/BCBdq6s3EC+Xtg=
>> =fG8u
>> -----END PGP SIGNATURE-----
>>
>>
>

Other related posts: