I've recently installed a new OwnCloud server, I have 2 encrypted usb hard drives that I will keep swapping over.
I'm looking at ways to script the backup. The hard drives are formatted in NTFS to allow me to read the drives on a windows pc.
I can figure out the script myself, but i'm struggling with the simple things first.
- With the drive plugged in I can see it's loaded as sdb with two partitions of sdb1 and sdb2
- How do I check if this is mounted so I can copy the files, also is there a way to automount this?
EDIT: I can manually mount the drive using the following; mount -t ntfs-3g /dev/sdb2 /media/backup