Skip to content

u/kastang

In this archive from Nov 2009 to Apr 2018

16
posts
130
comments
3
media
1.6k
score

Thank you for the feedback!

I'm going to make some tweaks to my original post:

  1. Scaling the SSDs down from 240GB to 120GB. I'm primarily planning on using the SSDs as Scratch Disks in unRAID.
  2. Changing the i3-6100 to a Pentium G4400. Half the cost of the i3 but will be able to handle everything unRAID needs. It looks to be the lowest Intel chip for LGA1151.
  3. Change the Mobo to the one you listed. Good catch!

I'm going to the PSU a bit before making a change. I've never heard of the brand, though its been about five or six years since i've last built a box.

1 points

This is probably missing some content, but it should get you pointed in the right direction. Below is a very quick HOW TO guide for getting started with Perl on OSX/Linux and Windows. I dont have a Windows computer so Im more or less flying blind with instructions on the Windows side.

Step 1 - Get Perl

If you're on OSX/Linux you should already have Perl installed:

$ perl --version
    
This is perl 5, version 22, subversion 2 (v5.22.2) built for x86_64-linux-thread-multi
(with 33 registered patches, see perl -V for more detail)

If you're on Windows you will need to install a Perl binary first. While I've never used it, I recommend Strawberry Perl based on this SO question.

Step 2 - Install Modules

This script requires the following Perl Modules:

  • utf8
  • Encode
  • JSON::XS
  • LWP::Simple
  • Data::Dumper

Linux/OSX

If you're on OSX/Linux you should have everything except JSON::XS and LWP::Simple already installed by default.

Installing modules on OSX/Linux is not always trivial - especially if you're not a developer. The easiest way if you're on Linux is to install the appropiate modules from apt-get, yum, dnf, etc. This removed the compiler dependencies that are usually required:

For example, on Fedora or RHEL/CentOS (replace dnf with yum):

dnf install perl-libwww-perl
dnf install perl-JSON-XS

If you're on OSX you will need to usecpan to handle the installation. I personally use a perlbrew environment on my OSX system so I cant give an accurate step by step here, but the following should more or less work:

Open Terminal. Authenticate as root to the system (sudo su). Next, type the following cpan commands. If this is you're first time using cpan you will be asked several questions - just hit enter to each... the default configuration should be sufficient.

IIRC, at some point OSX may ask you to download the XCode Command Line Tools. Follow the provided link to the App Store and download XCode if prompted. Its a hefty download so will take some time.

$ sudo su
# cpan JSON::XS
# cpan LWP::Simple

Windows

As I mentioned earlier, I don't have a Windows computer so I cant be much help in this department. According to this SO thread however, Strawberry Perl has CPAN built in. Read this post for accessing it.

When you open the CPAN client, you're already inside of CPAN and not invoking it from the command line so you would execute the following:

install JSON::XS
install LWP::Simple


At this point, you should have the required modules installed. If you need to install others (im 99% sure Encode and utf8 are core modules) just follow the above process again.

# Running the script

## Linux/OSX

1. Save the script to the same directory your ripme.jar file is located
2. Open terminal and `cd /path/to/the/folder/holding/ripme`
3. Run the script: `perl gonewilder-ripme.pl`

## On Windows

**VERY IMPORTANT NOTE FOR WINDOWS USERS**

Looking through my script the following block of code WILL NOT work on Windows systems. Before running the script below, delete the following block of code:

    # cache existing users as well so we keep everything up to date
    my @existing_users = `ls -1 ./rips | grep reddit_user`;
    foreach my $folderpath (@existing_users) {
        chomp $folderpath;
        my $user = $folderpath;
        $user =~ s/reddit_user_//;
        next if $user =~ m/^rips$/;
        unless(grep /$user/i, @authors) {
        	push @authors, $user;
        }
    }

This is currently lines 59-69. This removed the functionality for caching existing usernames.

**END OF IMPORTANT NOTE**


AFAIK, Strawberry Perl SHOULD automatically append the perl.exe binary to your $PATH variable. This means you can open a command prompt and follow more or less the same Linux/OSX instructions
 
1. Save the script to the same directory your ripme.jar file is located
2. Open CMD.exe (Start -> Run -> cmd.exe) and `cd C:\path\to\the\folder\holding\ripme`
3. Run the script: `perl.exe gonewilder-ripme.pl` (you may just need to call `perl` instead of `perl.exe`)

10 points

Luckily, Gonewilder can be entirely replaced by a simple wrapper script that leverages RipMe as the processing engine. See my gist for a POC.

The general logic is:

  1. Cache all TOP users for each provided Subreddit
  2. Cache all existing users which have been previously downloaded
  3. Loop through the cache and use RipMe to process /u/USERNAME

Edit: Worth mentioning this was only tested on 1.3.x branch of RipMe. I assume it will work for other versions as well. I have a fairly heavily customized version of 1.3.x and haven't had a chance to evaluate 1.4 yet.

15 points

I'm in a similar state with my DS1815+. I wouldn't trust expanding your current volume to a DX513. I'm personally planning on creating a separate volume on the DX513 instead.

3 points

I second Synology. I have a DS 412+ and am very happy with it other then the occasional hick up. What sets Synology apart from Drobo is their package center with community supported repos. If you need a application, there's probably a repo for it already. They also have builtin VPN Client support. Last time I checked, Drobo did not have this functionality

2 points

I set this value during my initial backup, but ultimately reverted it back to its original value afterwards. It is true that it greatly improves the initial backup set time, but after the initial upload, it doesn't check for duplicate files during its incremental updates. So, if you change the name of a 1GB file thats already been uploaded its going to re-upload that 1GB file.

2 points

I created a quick script that should be a good starting point. NOTE: this was put together in about 15 minutes I'm sure theres unmet conditions and bugs, but it should be a good starting point. When I get more time ill work on a more permanent solution and put it on Github.

#!/bin/bash

# ASSUMPTIONS:
# mount info is in /etc/fstab
# crashplan is properly installed (/etc/init.d/crashplan exists)
# using cifs to mount drive (see $MOUNTS comments if you're using SMBFS)

####################
### MODIFY BELOW ###
####################

# mount points that should be checked. for example, below is a portion of
# my df -hP output. if i wanted to check /volume1/Media and /volume1/Backups
# i would add those directories to CHECK_DIRS. be sure to leave a space
# in between the entries as well as a space between the ()'s.
#
#   Filesystem                       Size  Used Avail Use% Mounted on
#   \\10.0.1.10\Documents            5.5T  3.3T  2.2T  61% /volume1/Documents
#   \\10.0.1.10\Backups              5.5T  3.3T  2.2T  61% /volume1/Backups
CHECK_DIRS=( /volume1/Documents /volume1/Backups /volume1/fakedirectorytest )

# assuming the mount point is cifs. if this isn't accurate, replace it with
# the proper mount type. if you're unsure, just remove '-t cifs' entirly and
# it will loop through all local and remote mounts on the system instead.
MOUNTS=$(mount -t cifs | sort | uniq)

########################
## END MODIFICATIONS ###
########################

# check to see if the given path is mounted on the system.
# @params $1 the path that is being checked.
function does_mount_exist() {
    echo "$MOUNTS" | grep -q "$1"
    if [ $? -eq 0 ]; then
            return 0
    else
            return 1
    fi
}

function main() {
    _IFS="$IFS"
    IFS=$'\n'

    for dir in ${CHECK_DIRS[@]}; do
            echo "[DEBUG] IS $dir MOUNTED?"
            if ! does_mount_exist "$dir"; then

                    # attempt to remount the drive
                    echo "[DEBUG] ... $dir IS NOT MOUNTED. ATTEMPTING TO REMOUNT..."
                    mount -a

                    # check again to see if the drive is mounted
                    # if it still fails the check, stop crashplan.
                    if ! does_mount_exist "$dir"; then
                            echo "[DEBUG] ... ... $dir WONT REMOUNT... STOPPING CRASHPLAN..."
                            /etc/init.d/crashplan stop
                    else
                            echo "[DEBUG] ... ... $dir REMOUNT SUCCESSFUL..."
                    fi
            else
                    echo "[DEBUG] $dir MOUNTED. SKIPPING..."
            fi

            echo "----------------";
            echo
    done
    IFS="$_IFS"
}

if [[ $EUID == "0" ]]; then
    main
else
    echo "MUST BE ROOT TO RUN"
fi
2 points

I ran into this issue before. I have a CentOS server that runs Plex and Crashplan. Both use CIFS to mount SMB shares. I applied an update to my Synology and forgot to remount the CIFS shares on my CentOS server. This caused Crashplan to mark all of my files as "Deleted".

As long as you have the option on your backup set to "Never Delete" and have data de-duplication enabled, any files you're files are still on Crashplan. If you verify your backup set and let it run its course it'll skip any files that already exist (you'll notice a transfer speed thats unusually high (100+ Mbps) which is CrashPlans way of showing that the data already exists on the server.

You can verify this by looking at CrashPlan history log, you'll see something like "...encrypted and sent at @ 1.9Mbps (Effective rate: 24.5Mbps). The effective rate is greater because the files its attempting to re-upload already exist on CrashPlans servers.

Don't get me wrong. This is definitely an inconvenience - The last time this happened it took over a week to go through all of my files - but it sure beats the several months that it took to backup the initial set.

I was toying around with the idea of turning off live filesystem checking on my Crashplan share (so changes are only found when the backup set is verified) and writing a script that checks my CIFS mounts (once a minute) - if the mount doesn't exist, attempt to reconnect the drives, otherwise kill the crash plan service.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.