How to set up a USB Device in a way crashplan can use it as a Destination


Aderalia

Recommended Posts

Hey,

is there a easy way to create a btrfs filesystem on a USB 3.0 Harddrive and automount it whenever its pluged in so crashplan can Backup, lets say Disk 1 ,whenever i plug in Backup-Disk 1 (incrementally).

Currently my USB HDD only shows up as /dev/sdd with 0 Bytes of space (its not yet formated).

Link to comment

See here for a start.

 

If you want to use it inside a container, you have to restart the Docker service after mounting. This can be accomplished by this script:

 

#!/bin/bash
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
## Available variables: 
# AVAIL      : available space
# USED       : used space
# SIZE       : partition size
# SERIAL     : disk serial number
# ACTION     : if mounting, ADD; if unmounting, REMOVE
# MOUNTPOINT : where the partition is mounted
# FSTYPE     : partition filesystem
# LABEL      : partition label
# DEVICE     : partition device, e.g /dev/sda1
# OWNER      : "udev" if executed by UDEV, otherwise "user"
# PROG_NAME  : program name of this script
# LOGFILE    : log file for this script

case $ACTION in
  'ADD' )
    /etc/rc.d/rc.docker restart
    echo "Added"
  ;;

  'REMOVE' )
    /etc/rc.d/rc.docker stop
    sleep 15 && /etc/rc.d/rc.docker start &
    echo "Removed"
  ;;
esac

Link to comment

That Plugin scared me away cause i feared i had to do my own script (im a Windows Guy).

I tried it out and it actualy sees the drive (by Model Number), and after smashing my head against the table i also found the settings to enable the destructive mode :)

 

Sry for the stupid question, i was paralised by the scripts...

 

Thanks for the autorestart srcipt :)

 

 

Link to comment

That Plugin scared me away cause i feared i had to do my own script (im a Windows Guy).

I tried it out and it actualy sees the drive (by Model Number), and after smashing my head against the table i also found the settings to enable the destructive mode :)

 

Sry for the stupid question, i was paralised by the scripts...

 

Thanks for the autorestart srcipt :)

 

Have it being successful? I'll add it to the CrashPlan OP.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.