Trellis Xilonz backup to FTP

Hi, I’m trying to create automatic backup via Xilonz/trellis-backup-role extension.

I figure out that variables

backup_target_user: user
backup_target_pass: password

should be placed in all/vault.yml as their were not recognize when in production/vault.yml

I set the target to:
target: ftp://{{ backup_target_user }}[:{{ backup_target_pass }}]@xyz.ftp.dhosting.pl[:21]

and server log shows the error

Attempt 1 failed. BackendException: Error running 'lftp -c "source /tmp/duplicity-etq94hg0-tempdir/mkstemp-umg8ffmk-1; ( cd uploads/ && ls ) || ( mkdir -p uploads/ && cd uploads/ && ls )"': returned 1, with output:

open: Not connected
cd: Not connected
mkdir: Not connected

I found out that this problem would gone after lftp update → source

I have also tried NcFTP according to Duplicity instruction changing the target to

target: ncftp+ftp://{{ backup_target_user }}[:{{ backup_target_pass }}]@xyz.ftp.dhosting.pl[:21]

FTP
ftp[s]://user[:password]@other.host[:port]/some_dir

**NOTE:** use lftp+, ncftp+ prefixes to enforce a specific backend, default is lftp+ftp://...

but it’s looks like NcFTP is not installed

--- Start running command BKP at 06:15:04.230 ---

/bin/sh: 1: ncftpls: not found

NcFTP not found: Please install NcFTP version 3.1.9 or later

06:15:05.293 Task 'BKP' failed with exit code '27'.

--- Finished state FAILED 'code 27' at 06:15:05.293 - Runtime 00:00:01.062 ---

How can I make it work?

I also have tested sftp.

default setting (paramiko+sftp://) gave me an error

--- Start running command BKP at 08:00:04.107 ---

BackendException: could not load '/etc/ssh/ssh_config', maybe corrupt?

08:00:05.441 Task 'BKP' failed with exit code '23'.

--- Finished state FAILED 'code 23' at 08:00:05.441 - Runtime 00:00:01.334 ---

pexpect+sftp:// gave me the error

--- Start running command BKP at 08:30:04.373 ---
Reading globbing filelist /etc/duply/productionurl_uploads/exclude
Attempt 1 failed. BackendException: Error running 'sftp  -oServerAliveInterval=15 -oServerAliveCountMax=2

and finally lftp+sftp:// gave me the same error as on ftp

LFTP version is 4.8.4
Reading globbing filelist /etc/duply/productionurl_uploads/exclude
Attempt 1 failed. BackendException: Error running 'lftp -c "source /tmp/duplicity-ypnjdqwe-tempdir/mkstemp-3q46b7l1-1; ( cd backup/productionurl/uploads/ && ls ) || ( mkdir -p backup/productionurl/uploads/ && cd backup/productionurl/uploads/ && ls )"': returned 1, with output:

open: Not connected
cd: Not connected
mkdir: Not connected

So neither ftp nor sftp worked for me. I would appreciate help making this work. Thank you.

Unlisting since this should be posted on that git repo if anything, which I see you already did

This topic was automatically closed after 42 days. New replies are no longer allowed.