I accidentally stumbled upon this solution while trying to find cloud providers to backup my 2TB’s worth of NAS backups. With every single cloud solution being out of price range for the size data I needed I had to look elsewhere. I came across the ioSafe Solo G3 enclosure. It boasts about being safe in every way possible, Fire Proof, Water Proof, and Theft Proof. I almost considered it too good to be true, seemed legit enough after watching some YouTube videos.
During the video you will notice he manages to burn the enclosure under serious fire directly for a bit. There are also other videos of ioSafe products under direct flames for extended periods of time and direct water blasts from the fire department after. Here we have the drive pulled out from the crisp enclosure.
Some of you may notice something you will immediately not like, TOSHIBA. I reached out to ioSafe to see if I can have it made with a brand I trust a little better. I have not had a response in 2 weeks. After some time stewing I really wanted this product but the drive inside really annoyed me. I have had more Toshiba’s die on me from experience in data centers than any other brand. I found a solution to this problem. I am going to show you the steps I am taking to protect the lifespan of this drive but be able to leave it plugged in for long term backups.
Requirements: Linux OS, crontab, rsync, hdparm
- I start off by plugging in my new drive and formatting it.
After formatting I need to grab the device UUID for use later.
/dev/sda1: UUID="fbb3b599-0a07-46f5-945d-0dbe6cac7639" TYPE="ext4" PARTLABEL="primary" PARTUUID="c15d00d1-214f-4517-8c2c-8037419ff0d4"
Now I have the UUID, lets move on to crontab. Create two cron tasks using
5 8 * * 0 /mnt/4000/home/ldrrp/Scripts/fireproof-weekly.sh
So according to this
5 8 * * 0 would run 8:05 AM every Sunday and
0 6 * * * would run daily at 6 AM. Lets create the first script in the location you selected to save it.
- This script will mount the drive, sync any new files or changed files only, then un-mount it and force it to sleep.
DRIVE_UUID=UUID-HERE mount --uuid $DRIVE_UUID /mnt/fireproof rsync –av /mnt/4000/ /mnt/fireproof/ umount /mnt/fireproof/ hdparm -Y /dev/disk/by-uuid/$DRIVE_UUID
- This script will mount the drive, sync any new files or changed files, it will also delete any deleted files. Great for recovering a deleted file before sunday rolls around, then un-mount it and force it to sleep.
DRIVE_UUID=UUID-HERE mount --uuid $DRIVE_UUID /mnt/fireproof rsync –av --delete /mnt/4000/ /mnt/fireproof/ umount /mnt/fireproof/ hdparm -Y /dev/disk/by-uuid/$DRIVE_UUID
- Last, make sure the directory exists for the mount point, run
I know some of you may point out that Linux automatically sleeps drives, but I just want that extra assurance that nothing will be waking it up creating unneeded wear on the drive. Also there will be no delay on this once the backup is complete.