script

  1. H

    Help with bash script

    Hi all, I'm a linux novice and would like some help creating a bash script that I can setup on a cron. The purpose of the script is to write the size of each user's home directory to a csv file every night. I have it working great right now, but would like to add a third column that contains the...
  2. S

    Startup scripts finally working

    Being a total linux/freensd noob, I had no idea why my scripts were running on boot. they were throwing all kinds of errors. So I'm trying to post what I finally got to work here so others don't have to struggle for as long as I did...someone please correct me if I'm wrong 1. in your script...
  3. Stranded Camel

    Postinit scripts: where to put them?

    I need to run a postinit script, which I've carefully written to use only full command paths. It works perfectly when I run it manually, but when I set it to be run automatically as a postinit script, it's never run. Now, the script is on an encrypted volume, but I've been unencrypting it as...
  4. N

    Scripts to install and backup/restore Sonarr, Radarr, Lidarr, Sabnzbd, and Tautulli

    I have installed Sonarr, Radarr, Lidarr, Sabnzbd and Tautulli in separate iocage jails as per this Resource. I want to have an easy way to install the apps in a separate jail as per the Resource link, as well as an easy way to backup and restore the separate data directories for them. You have...
  5. cozd74

    script post init

    on my freenas I connected a USB disk to backup the data of my volume, I have provided a startup script to mount the disk on the backup_usb folder at startup but it does not work although the script I have scheduled it as a task Postinit why?
  6. Kennyvb8

    how to start a script at boot?

    Hello i'm trying to get a program (plexdrive) to start at boot. so far i tried this in command at postinit: /usr/local/bin/screen -dmS plexdrive_screen /bin/sh /usr/local/bin/plexdrive mount -c /mnt/SSD0/home/kenny/.plexdrive -o allow_other /mnt/SSD0/PlexRemote Also tried in script postinit...
  7. D

    Script Help: Cron Task does not execute at specified time or on "Run Now"

    Freenas 11.1 I setup a cron task in the GUI, and have tried running it, but it does not seem to run. I've set it up as the root user, and put the full path to the shell script it's supposed to run. I'm trying to test to see if this works by using the "Run Now" button. The command...
  8. T

    Install script for Domoticz with open-zwave driver in iocage jail

    A friend of mine, who is into home automation, wanted to install the domoticz system with drivers for the Aeotec Z-Stick Z-Wave USB stick into FreeNAS 11.1. I took as a challenge to find out, how difficult would it be to write a fairly complex, but fully automatic installation script of a...
  9. N

    Determining if a drive is in standby mode

    When I upgraded my FreeNAS box, I installed an LSI HBA, so now I have drives that are daX, and adaX. I have a script that checks to see if a drive is spun down (I have a secondary pool that is rarely used and stays in power down standby) and not wake it up just to take it's temperature. I...
  10. N

    Script to Identify Disk Drives - device name / Serial / GPTID

    As part of the process of upgrading my FreeNAS box, I'm going through and sorting all my scripts. I put together this script to aid in drive identification so that when a drive fails it's easier to locate the correct drive for replacement. The similar scripts I have come across used smartctl...
  11. N

    Has anyone used syncoid to script replication of ZFS snapshots?

    Has anyone used syncoid to script replication of ZFS snapshots on FreeNAS? ( https://github.com/jimsalterjrs/sanoid/blob/master/syncoid ) FYI it's a huge perl script that uses zfs commands to do replication tasks. At first glance it looks like it could be really useful, but before I dig into...
  12. snickasaurus

    Here is a script to email your FreeNAS database backup

    Hello all. I've been playing around with my commandlinefu to keep it strong. There are definitely some great scripts out here to keep an eye on one's FreeNAS box. I just wanted to share this one in hopes someone might like it or a scripting/security guru could tell me how dumb of an idea it is...
  13. bass_rock

    Init Script Not Running

    I currently have an init script that looks like this on my zfs vol: #!/bin/bash /usr/local/bin/plexdrive mount --uid=1000 --gid=1000 --cache-file=/mnt/Data/Docker/plexdrive/cache.bolt -c /mnt/Data/Docker/plexdrive -o allow_other /mnt/Data/PlexDriveEncrypted & /usr/local/bin/rclone mount...
  14. D

    trying to create volume - script displayed

    I tried to create a volume out of 2 x 500 GB hdds and get this from the window: Request Method: POST Request URL: http://192.168.100.64/storage/volumemanager/ Software Version: FreeNAS-11.0-U2 (e417d8aa5) Exception Type: MiddlewareError Exception Value: [MiddlewareError: b'Unable to GPT format...
  15. pingoo

    Info sur snapshot

    Bonjour à vous, Je configure un freenas lié à un Windows server 2012. (le freenas est bien dans le domaine) J'aimerais que mon freenas fasse des snapshots tout les x temps et les envoie sur mon windows server. Je pensais donc faire un instantané pérodique (ex: le vendredi soir) Et sur le WS...
  16. T

    Upgrade-safe script location?

    Supposing I want to build custom monitoring scripts or what have you, is there a location (perhaps /usr/local/sbin?) where they won't get pwned by an upgrade?
  17. J

    SOLVED Cron Job script will not run

    Hi, I have a script that is designed to pull a couple of spreadsheets via a curl request. I've tested the script multiple times and works perfectly within the shell, however when I try to set it up as a cron job, not only does the script not run at the specified time, it doesn't run at all even...
  18. M

    Question on creating a failsafe/rotating offsite Backup with FreeNAS

    Hello Everyone, I'm fairly new to the FreeNAS community, I've been using it for a couple of months. I'm truly loving it. At home I've been using NAS4Free due to my NAS being an Aspire Home Server with an Intel Atom, 4TB storage (with not the best retention), and 2GB RAM (I've had it for like 6...
  19. M

    Automatische Mail mit Smartbericht und anderen Infos..

    Funktioniert eigentlich das Script in den HowTo`s mit dem man automatiscjh MAils versenden kann mit Smart-Infos und anderen Systeminformationen auch mit der aktuellen 9.10er Version von Freenas? Hab mich durch das englische HowTo gekämpft, will aber nichts kaputmachen. Vielleicht gibt es ja...
Top