In the over the world exist 2 types of human first have backup and second will have backup.
Always when we think about backup back two question . First where storage yo backup second how to do secure .
I don`t have enough infrastructure for make safe home backup so I selected use on line cloud backup example blazebackup dropbox meganz. If wen want use network storage better play to safe .
So i created script for tar directory divide created archive to part files example 100mb and encrypt files AES 256 .
1.You don’t need all tar files to untar files you can untar example 1 file.
2.Strong encrypt algorythm aes-256
1. This is not incremental backup this copy all files .
2. You need free disk space > size files to backup
<pre>#!/bin.sh #Create 1 gb parta #v0.01 # $1 what backup # $2 namebackup #Change passss this is password for encrypt passss="test1" target=$1 backupname=$2 #size file deflaut 100mb size=102400 mkdir backuptar namebackup="backuptar/$backupname"; sizex=$((size*1024)) numfile=$(($(du --max-depth=0 $target | cut -d$'\t' -f1)/$size)); echo $numfile numfile=$(($numfile+1)); #create tar file tar -c -M -L $size $(for i in `seq 1 $numfile`; do echo "--file=$namebackup$i.tar"; done) $target #Openssl crypt created files and deleted old tar for mi in `seq 1 $numfile`; do openssl enc -aes-256-cbc -in $namebackup$mi.tar -out $namebackup$mi.tar.r2d2 -k $passss && rm $namebackup$mi.tar done</pre>