File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed
dedibox/dedicated-servers/how-to Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -111,29 +111,24 @@ It is why `lftp` is the best option.
111111
112112For 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
125123lftp -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
129125cd "/"
130126# Upload a file
131- put "dedibox_file_path_here .7z"
127+ put "path_to_your_file .7z"
132128# List files in the folder
133129ls
134130# Remove a file
135- rm "ftp_file_path_here.7z"
136- # Exit lftp
131+ rm "file_to_remove.7z"
137132bye
138133EOF
139134```
You can’t perform that action at this time.
0 commit comments