duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] backing up using SFTP to a directory under my home


From: Luis Tirado
Subject: Re: [Duplicity-talk] backing up using SFTP to a directory under my home directory
Date: Thu, 8 Feb 2018 19:55:32 -0500

Hi Scott/Edgar,

Switching to the default paramiko worked, had to end up installing
that module instead and changing to the default sftp:// that uses it
with the added / worked to access the correct path. For whatever
reason pexpect+sftp did not like the // syntax. Working smoothly now,
thanks!

-Luis

On Thu, Feb 8, 2018 at 6:03 AM, edgar.soldin--- via Duplicity-talk
<address@hidden> wrote:
> Luis,
>
> aside from the possibility that your backend might be changerooted there is 
> an official way to define an absolute vs. relative backend folder, which is 
> described in the man page, section URL Format.
>
> "
>     scheme://[user[:address@hidden:port]/[/]path
> ...
> In protocols that support it, the path may be preceded by a single slash, 
> ’/path’, to represent a relative path to the target home directory, or 
> preceded by a double slash, ’//path’, to represent an absolute filesystem 
> path.
> "
>
> any specific reason that you use pexpect+sftp:// instead of default paramiko?
>
> ..ede/duply.net
>
> On 08.02.2018 01:47, Luis Tirado via Duplicity-talk wrote:
>> I have a Windows system running cygwin and duplicity (client) -- backup 
>> source
>> I have a Linux server capable of using SFTP -- backup destination
>>
>> I am attempting to backup a folder from the client to the server. The
>> folder I want to place the backups is underneath my home directory on
>> the server, however:
>>
>> /proj/backup_dir
>>
>> When I issue a command like:
>>
>> export FTP_PASSWORD=mypass
>> duplicity /cygdrive/c/folder_to_backup
>> pexpect+sftp://address@hidden/proj/backup_dir
>>
>> What ends up happening is that this backs up the contents to
>> ~/proj/backup_dir which is not what I want... Moving the backup after
>> the fact would not work since I have a quota on my home directory
>> which exceeds the backup's size.
>>
>> What I'd like it to do is to back up the contents to /proj/backup_dir
>>
>> I attempted to use a symlink on my home directory to point to the
>> folder, and that works to an extent... This works:
>>
>> duplicity /cygdrive/c/folder_to_backup
>> pexpect+sftp://address@hidden/symlinked_dir
>>
>> where symlinked_dir -> /proj/backup_dir
>>
>> but this does not:
>>
>> duplicity /cygdrive/c/folder_to_backup
>> pexpect+sftp://address@hidden/symlinked_dir/subfolder
>>
>> I get messages like this:
>> "bash-4.3$ cwdup.sh
>> Local and Remote metadata are synchronized, no sync needed.
>>       0 [main] python2.7 390948 child_info_fork::abort: address space
>> needed by '_librsync.dll' (0x520000) is already oc
>> cupied
>>       0 [main] python2.7 411620 child_info_fork::abort: address space
>> needed by '_librsync.dll' (0x520000) is already oc
>> cupied
>> Attempt 1 failed. ExceptionPexpect: pty.fork() failed: [Errno 11]
>> Resource temporarily unavailable"
>>
>> I don't have control of this server, where I am backing up the data so
>> I can't change where the sftp command places me in my home directory
>> when I log in.
>>
>> Is there another way I can accomplish backing up to some folder
>> underneath the server's root (/) directory, rather than on my home
>> (~/) directory?
>>
>> Thanks!
>>
>> _______________________________________________
>> Duplicity-talk mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]