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: Scott Hannahs
Subject: Re: [Duplicity-talk] backing up using SFTP to a directory under my home directory
Date: Wed, 7 Feb 2018 19:54:40 -0500

Luis,

Unfortunately since you don’t have control over the server it may be set up such that it does a chroot (change root) to your home directory in which case you can’t access file structure outside of that (aside from he symbolic link trick).

See https://askubuntu.com/questions/49271/how-to-setup-a-sftp-server-with-users-chrooted-in-their-home-directories#49284 for the settings that do this.  You might be able to read the settings on the server to see if it is set up that way.

This is a standard security setting to protect the server from unwanted access and probing.

-Scott


On Feb 7, 2018, at 7:47 PM, Luis Tirado via Duplicity-talk <address@hidden> 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]