MH WTRs

Exclude Large file/folders in cPanel backups #

/home/username/cpbackup-exclude.conf https://support.cpanel.net/hc/en-us/articles/360052681834-How-to-Exclude-Files-from-Backups

FTP #

FTP Connection Oneliner #

echo -e "\nCurrent Directory: $(pwd)\n"; read -p "Username: " user; read -p "Password: " pass; read -p "Host: " host; lftp -u "$user","$pass" $host -e 'set net:socket-buffer 4000000;set net:timeout 10;set net:max-retries 5;set net:reconnect-interval-max 10; set ftp:ssl-allow off; set net:limit-total-rate 5943040:0;set ftp:list-options -a'

Avoids leaving pw in bash history

LFTP Cheat-Sheet #

# changes the folder on your localhost
lcd folder/you/want
# changes the folder on the remote host you connected to with lftp
cd folder/you/want
pwd
lpwd
# this will mirror the two directories you're in
mirror -cs --parallel=4

Possible cPanel backup bypass if not available in the GUI #

https://hostname.com:2083/cpsess#########/frontend/paper_lantern/backup/fullbackup.html