Skip to content

Commit d93b90f

Browse files
QuentinCGbene2k1
andauthored
Update dedibox/dedicated-servers/how-to/use-dedibackup-ftp-backup.mdx
Applying suggestion of @bene2k1 Co-authored-by: Benedikt Rollik <[email protected]>
1 parent e04a10c commit d93b90f

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

dedibox/dedicated-servers/how-to/use-dedibackup-ftp-backup.mdx

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,29 +111,24 @@ It is why `lftp` is the best option.
111111

112112
For interactive sessions, use `lftp` with the following command:
113113
```sh
114-
# Requirement
115-
apt install lftp
114+
apt install lftp # Requirement
116115

117-
# FTP Credentials
118-
FTP_HOST="dedibackup-dc3.online.net"
119-
FTP_USER="auto" # If using ACL and auto-login, login is 'auto', else use provided username
120-
FTP_PASS="" # If using ACL and auto-login, password is empty, else use provided password
116+
FTP_HOST="ftp://dedibackup-dc3.online.net"
117+
FTP_USER="sd-XXXXX" # Replace with your server ID or 'auto' for autologin
118+
FTP_PASS="your_password" # Leave blank if using autologin
121119

122120
# - Connect to FTP server
123121
# - Upload a file, list files, remove a file
124122
# - Disconnect from FTP server
125123
lftp -u "$FTP_USER,$FTP_PASS" "$FTP_HOST" <<EOF
126-
# Enable passive mode for FTP
127-
set ftp:passive-mode true
128124
# Change to the specified FTP directory
129125
cd "/"
130126
# Upload a file
131-
put "dedibox_file_path_here.7z"
127+
put "path_to_your_file.7z"
132128
# List files in the folder
133129
ls
134130
# Remove a file
135-
rm "ftp_file_path_here.7z"
136-
# Exit lftp
131+
rm "file_to_remove.7z"
137132
bye
138133
EOF
139134
```

0 commit comments

Comments
 (0)