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: edgar . soldin
Subject: Re: [Duplicity-talk] backing up using SFTP to a directory under my home directory
Date: Thu, 8 Feb 2018 12:03:02 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

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
> 




reply via email to

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