Get Social

How to encrypt a backup and upload it on ftp or sftp?

If you need to upload backup to a third-party ftp-server (archive, just a file), however, you need to ensure that important information does not fall into the wrong hands, before uploading, encrypt it with a password and then upload it.

We encrypt the file with the openssl command

openssl aes-256-cbc -salt -in FILE -out FILE.aes -k PASSWORD
(openssl there are in most Linux distributions, and you can also install it in windows and mac os)
To request a password, you need to remove the “-k PASSWORD”.
You can decrypt with the command
openssl aes-256-cbc -d -salt -in FILE.aes -out FILE -k PASSWORD


How to upload to ftp (using curl best)

curl -s -T FILE -u USER:PASSWORD ftp://ftpserverhostname


How to upload to sftp

rsync -avz -e ssh USER@PASSWORD:/remote/directory/ /current/directory/file


How to upload to sftp with curl

short answer – use rsync over ssh and do not suffer 🙂

How to backup important files (windows)

Task: The ordinary user on windows needs to backup their data.

In search of an easy solution, I found a free and convenient FBackup program (

After installation, do the following:

1. Open FBackup application

2. Choose “new backup” in left top corner


3. Set the name and select the disk and the folder where the backup copies will be stored


4. Click “next” and choose directory which you need to archive with “add folder” (so you can select multiple folders and files)



5. In the next window we can choose the encryption with the password of the archive


6. Next – you can choose a schedule (or manually – it means no schedule), when to backup. Best of all – every day at a certain time.


7. Then click “save” => “save and run”. Task for backup is ready. In the end you can configure start of Fbackup when the computer boots. For this you need to select in the main window File => Options => Startup and tick “Start at windows startup”