Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SNAP Plugin updated for unRAID Version 5.0

Featured Replies

  • Author

Can I share a drive with NFS or does it only work with SMB?

 

SMB only.

  • Replies 188
  • Views 60.1k
  • Created
  • Last Reply

Can a hotPlugAfterShareEvent be triggered for a SNAP share drive being hot-plugged into a regular SATA port (that supports hot-swapping) or must it be an eSATA port?

Will this mount disks formatted as ext 4?

 

Kryspy

  • Author

Can a hotPlugAfterShareEvent be triggered for a SNAP share drive being hot-plugged into a regular SATA port (that supports hot-swapping) or must it be an eSATA port?

 

I don't think UnRAID supports hot plugging sata devices.

Can a hotPlugAfterShareEvent be triggered for a SNAP share drive being hot-plugged into a regular SATA port (that supports hot-swapping) or must it be an eSATA port?

 

I don't think UnRAID supports hot plugging sata devices.

 

Well it's interesting. Because it seems unRAID sort of does (though perhaps not totally).

 

I forgot when I upgraded my motherboard that SNAP hot-plug events were specified for only USB and eSATA. I just assumed that because the BIOS in my new board supports hot-plugging that I could connect the dock in my case to a regular SATA port and it would work the same, with SNAP still triggering an event. What I've actually found is that the drives do hot plug OK. That is, I can mount and share them with your SNAP GUI just fine. But so far I'm unable to get SNAP to do it automatically with a hotPlugAfterShareEvent.

 

What I'm wondering now, as the drives do work when hot-plugged to a regular (non-e) SATA port, is if it may be possible to modify SNAP to fully support them?

jumperalex,

 

Thanks worked just fine.

 

Kryspy

hi guys,

 

is it possible to copy files from a snap share/drive to an unraid share periodically on the unraid box itself? like some sort of protected backup?

 

i know i can use the midnight commander but i want something automated...

 

i hope it's possible

 

thanks for your help

 

shimon

  • Author

hi guys,

 

is it possible to copy files from a snap share/drive to an unraid share periodically on the unraid box itself? like some sort of protected backup?

 

i know i can use the midnight commander but i want something automated...

 

i hope it's possible

 

thanks for your help

 

shimon

 

Yes it is.  I have a script that runs daily to backup some unRAID files to a backup drive.  You can use the same idea to copy files to the unRAID array.

 

This is what my script looks like.

#
# Perform daily backups.
#

LOGFILE=/var/log/DailyBackups
MOUNTPOINT=/mnt/disk/DailyBackups
PROG_NAME=DailyBackup

logger Started -t$PROG_NAME
echo "Started" > $LOGFILE

if [ -d $MOUNTPOINT ]
then
logger Daily Backup Drive Mounted -t$PROG_NAME
echo "Daily Backup Drive Mounted" > $LOGFILE
else
# Mount the DailyBackups drive
/boot/config/plugins/snap/snap.sh -m DailyBackups
fi

if [ -d $MOUNTPOINT ]
then
logger Music share -t$PROG_NAME
echo "Music share" >> $LOGFILE
rsync -a -v --delete /mnt/user/Music $MOUNTPOINT/ 2>&1 >> $LOGFILE

logger Log File - DailyBackups  -t$PROG_NAME

logger Completed -t$PROG_NAME
echo "Completed" >> $LOGFILE

/boot/config/plugins/snap/snap.sh -MW DailyBackups
else
logger Daily Backup Drive Not Mounted -t$PROG_NAME
echo "Daily Backup Drive Not Mounted" > $LOGFILE
fi

 

I have the following line in my go file to copy the script to the daily cron directory.

cp /boot/custom/DailyBackups /etc/cron.daily

hello everyone.

 

i installed the plugin today and everything went totally fine!

 

I can accsess the shared folder and all but there is a problem im having with permissions and ownership of the new mounted drive.

 

the drive is set to read only and the owner is root:

 

I want to use the snap mounted HDD as Apps folder for SabNzbd and Sickbeard n such, but every chown or chmod command via telnet is not working.

 

please can anyboy help me out? its driving me insane....

 

THX

 

PS

 

im using these ...

 

 

chmod -R 777 /mnt/disk          for rw perms

 

and

 

chown -R nobody:users /mnt/disk        for owner

 

You have to install the ntfs-3g driver.

The stock ntfs driver is read-only

 

You can easily install the driver from the unMENU (if installed).

Or search the forum for a standalone version.

sorry: not working:

 

I didnt mention my FileSystem of the disk. it is ext2. I installed the Ntfs-3g and tried to chmod and chown but no luck.... still the same !

 

i will format my drive to NTFS to test and check back here a little later!

 

Thank u so much for the quick help!

hi guys,

 

is it possible to copy files from a snap share/drive to an unraid share periodically on the unraid box itself? like some sort of protected backup?

 

i know i can use the midnight commander but i want something automated...

 

i hope it's possible

 

thanks for your help

 

shimon

 

Yes it is.  I have a script that runs daily to backup some unRAID files to a backup drive.  You can use the same idea to copy files to the unRAID array.

 

This is what my script looks like.

#
# Perform daily backups.
#

LOGFILE=/var/log/DailyBackups
MOUNTPOINT=/mnt/disk/DailyBackups
PROG_NAME=DailyBackup

logger Started -t$PROG_NAME
echo "Started" > $LOGFILE

if [ -d $MOUNTPOINT ]
then
logger Daily Backup Drive Mounted -t$PROG_NAME
echo "Daily Backup Drive Mounted" > $LOGFILE
else
# Mount the DailyBackups drive
/boot/config/plugins/snap/snap.sh -m DailyBackups
fi

if [ -d $MOUNTPOINT ]
then
logger Music share -t$PROG_NAME
echo "Music share" >> $LOGFILE
rsync -a -v --delete /mnt/user/Music $MOUNTPOINT/ 2>&1 >> $LOGFILE

logger Log File - DailyBackups  -t$PROG_NAME

logger Completed -t$PROG_NAME
echo "Completed" >> $LOGFILE

/boot/config/plugins/snap/snap.sh -MW DailyBackups
else
logger Daily Backup Drive Not Mounted -t$PROG_NAME
echo "Daily Backup Drive Not Mounted" > $LOGFILE
fi

 

I have the following line in my go file to copy the script to the daily cron directory.

cp /boot/custom/DailyBackups /etc/cron.daily

 

thanks for your reply!

 

i hope it not too much to ask for more details, like where to insert the script? and what to configure for this script to work...

 

hope for your support

 

shimon

hi guys,

 

is it possible to copy files from a snap share/drive to an unraid share periodically on the unraid box itself? like some sort of protected backup?

 

i know i can use the midnight commander but i want something automated...

 

i hope it's possible

 

thanks for your help

 

shimon

 

Yes it is.  I have a script that runs daily to backup some unRAID files to a backup drive.  You can use the same idea to copy files to the unRAID array.

 

This is what my script looks like.

#
# Perform daily backups.
#

LOGFILE=/var/log/DailyBackups
MOUNTPOINT=/mnt/disk/DailyBackups
PROG_NAME=DailyBackup

logger Started -t$PROG_NAME
echo "Started" > $LOGFILE

if [ -d $MOUNTPOINT ]
then
logger Daily Backup Drive Mounted -t$PROG_NAME
echo "Daily Backup Drive Mounted" > $LOGFILE
else
# Mount the DailyBackups drive
/boot/config/plugins/snap/snap.sh -m DailyBackups
fi

if [ -d $MOUNTPOINT ]
then
logger Music share -t$PROG_NAME
echo "Music share" >> $LOGFILE
rsync -a -v --delete /mnt/user/Music $MOUNTPOINT/ 2>&1 >> $LOGFILE

logger Log File - DailyBackups  -t$PROG_NAME

logger Completed -t$PROG_NAME
echo "Completed" >> $LOGFILE

/boot/config/plugins/snap/snap.sh -MW DailyBackups
else
logger Daily Backup Drive Not Mounted -t$PROG_NAME
echo "Daily Backup Drive Not Mounted" > $LOGFILE
fi

 

I have the following line in my go file to copy the script to the daily cron directory.

cp /boot/custom/DailyBackups /etc/cron.daily

 

thanks for your reply!

 

i hope it not too much to ask for more details, like where to insert the script? and what to configure for this script to work...

 

hope for your support

 

shimon

omg ! thank you sooo much for updating this  :) one of the most important plugins to me, good work.

  • Author

hi guys,

 

is it possible to copy files from a snap share/drive to an unraid share periodically on the unraid box itself? like some sort of protected backup?

 

i know i can use the midnight commander but i want something automated...

 

i hope it's possible

 

thanks for your help

 

shimon

 

Yes it is.  I have a script that runs daily to backup some unRAID files to a backup drive.  You can use the same idea to copy files to the unRAID array.

 

This is what my script looks like.

#
# Perform daily backups.
#

LOGFILE=/var/log/DailyBackups
MOUNTPOINT=/mnt/disk/DailyBackups
PROG_NAME=DailyBackup

logger Started -t$PROG_NAME
echo "Started" > $LOGFILE

if [ -d $MOUNTPOINT ]
then
logger Daily Backup Drive Mounted -t$PROG_NAME
echo "Daily Backup Drive Mounted" > $LOGFILE
else
# Mount the DailyBackups drive
/boot/config/plugins/snap/snap.sh -m DailyBackups
fi

if [ -d $MOUNTPOINT ]
then
logger Music share -t$PROG_NAME
echo "Music share" >> $LOGFILE
rsync -a -v --delete /mnt/user/Music $MOUNTPOINT/ 2>&1 >> $LOGFILE

logger Log File - DailyBackups  -t$PROG_NAME

logger Completed -t$PROG_NAME
echo "Completed" >> $LOGFILE

/boot/config/plugins/snap/snap.sh -MW DailyBackups
else
logger Daily Backup Drive Not Mounted -t$PROG_NAME
echo "Daily Backup Drive Not Mounted" > $LOGFILE
fi

 

I have the following line in my go file to copy the script to the daily cron directory.

cp /boot/custom/DailyBackups /etc/cron.daily

 

thanks for your reply!

 

i hope it not too much to ask for more details, like where to insert the script? and what to configure for this script to work...

 

hope for your support

 

shimon

There is really nothing to configure.  Edit the script for your needs.  The script should be on the flash drive.  I put it in the /boot/custom/ directory and copy it to the /etc/cron.daily directory when unRAID is started with this line in the go script:

 

cp /boot/custom/DailyBackups /etc/cron.daily

 

unRAID executes the script once a day.

I just setup bit torrent sync. Iy is perfect if you have another computer to backup to that you can install btsync onto.

 

Kryspy

hi guys,

 

is it possible to copy files from a snap share/drive to an unraid share periodically on the unraid box itself? like some sort of protected backup?

 

i know i can use the midnight commander but i want something automated...

 

i hope it's possible

 

thanks for your help

 

shimon

 

Yes it is.  I have a script that runs daily to backup some unRAID files to a backup drive.  You can use the same idea to copy files to the unRAID array.

 

This is what my script looks like.

#
# Perform daily backups.
#

LOGFILE=/var/log/DailyBackups
MOUNTPOINT=/mnt/disk/DailyBackups
PROG_NAME=DailyBackup

logger Started -t$PROG_NAME
echo "Started" > $LOGFILE

if [ -d $MOUNTPOINT ]
then
logger Daily Backup Drive Mounted -t$PROG_NAME
echo "Daily Backup Drive Mounted" > $LOGFILE
else
# Mount the DailyBackups drive
/boot/config/plugins/snap/snap.sh -m DailyBackups
fi

if [ -d $MOUNTPOINT ]
then
logger Music share -t$PROG_NAME
echo "Music share" >> $LOGFILE
rsync -a -v --delete /mnt/user/Music $MOUNTPOINT/ 2>&1 >> $LOGFILE

logger Log File - DailyBackups  -t$PROG_NAME

logger Completed -t$PROG_NAME
echo "Completed" >> $LOGFILE

/boot/config/plugins/snap/snap.sh -MW DailyBackups
else
logger Daily Backup Drive Not Mounted -t$PROG_NAME
echo "Daily Backup Drive Not Mounted" > $LOGFILE
fi

 

I have the following line in my go file to copy the script to the daily cron directory.

cp /boot/custom/DailyBackups /etc/cron.daily

 

thanks for your reply!

 

i hope it not too much to ask for more details, like where to insert the script? and what to configure for this script to work...

 

hope for your support

 

shimon

There is really nothing to configure.  Edit the script for your needs.  The script should be on the flash drive.  I put it in the /boot/custom/ directory and copy it to the /etc/cron.daily directory when unRAID is started with this line in the go script:

 

cp /boot/custom/DailyBackups /etc/cron.daily

 

unRAID executes the script once a day.

 

sorry, but i dont know what file to edit or put the script in...

 

what is the go script you talk about?

 

i'm noob in linux and unraid plugins...

 

thanks for your patience

 

 

what is the go script you talk about?

Its on the FLASH drive, in the CONFIG folder, its called, 'go'. (not the go-safe file).

 

From your PC, be sure to use one of the free editors that is compatible with Linux scripting.

http://lime-technology.com/wiki/index.php/UnRAID_Topical_Index#Editors

 

 

(On my Mac, I use Textmate,  'notepad2' seems to be popular on PC's. )

(There's also an editor builtin to the unraid box console. Login and type in MC (for Midnight Commander) to get to a file browser. You'll see the editor function key on the bottom.  The path you want to follow is /boot/config/ and then down to the 'go' file.)

 

  • 2 weeks later...
  • Author

If you want to mount a SNAP drive to use with a plugin, add the following to your go file:

 

/boot/config/plugins/snap/snap.sh -m ShareName

 

If you want to mount and share a SNAP drive, add the following to your go file:

 

/boot/config/plugins/snap/snap.sh -ms ShareName

 

"ShareName" is the share name you have assigned to the drive.

 

This will mount the SNAP drive before the plugins start.

Which file systems are mounted by SNAP at the moment?

Will there be an upgrade to support more?

 

  • Author

Which file systems are mounted by SNAP at the moment?

 

reiserfs, ntfs, vfat, msdos, ext2, ext3, and hfsplus.

 

Will there be an upgrade to support more?

 

No plans at this time.

I installed SNAP ver 5.19 with no issues on my new Unraid server Version 5.0.4.  Everything installed without a hitch, but when I try to access the directories on the mounted drive using snap I am getting denied permission to the drive.  I have read and reread the posts but I can't seem for the life of me to see where this was addressed when I know it was.  I gave up reading and decided to post this to see if there was a simple solution.  I am attaching a screen shot of the SNAP Shares and the error I get through my Windows machine.  Thanks and I hope I can get this to work.

Snap_Capture.jpg.03d5e981f9d0feef433206187f3d0524.jpg

Permissions_Capture.jpg.bf060e074dbe3ddd381b707abe03e44b.jpg

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.