I'm starting to get familiar with the shell and command line, I just want to know how I can get backups from some specific folders and send them to my server using just one command.
.netrc (with my user/password) for my ftp command and now it works. I just need to add " put my_file " in my alias so it runs after ftp connects.
alias save='tar -czvf backup-$(date +%Y-%m-%d).tar.gz /home/user/.bash*' alias ftpme='ftp 10.1.1.172'
I need to add 'put my_file' in the code above so both commands run when I type