Not exactly. Some external enclosures (WD, specifically) have a hardware encryption module in the external enclosure and the key cannot (easily) be exported so if the enclosure fails or the drive is shucked and added to NAS it would be unreadable.
You may want to use either 2>&1 to redirect stderr to the file as well, or &> if you're using a newer version of bash as your shell which will accomplish the same thing.
I doubt something like this exists. The best bet would be to use Google Custom Search API which is limited to 100 requests/day for free (or $50/m for 10K requests/day).
DOM parsing could be an option, but Google would certainly flag your IP with a Captcha response in no time.
I'm going to make some tweaks to my original post:
Scaling the SSDs down from 240GB to 120GB. I'm primarily planning on using the SSDs as Scratch Disks in unRAID.
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.
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.
Glad it worked. I had a few minutes free tonight and built (part of) the functionality directly into RipMe. I have submitted a PR - pending /u/MetaPrime approval you may not need to use the wrapper script for much longer.
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):
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`)
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:
Cache all TOP users for each provided Subreddit
Cache all existing users which have been previously downloaded
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.
My initial backup was only around 3TB over a year ago (closer to two years, probably). It look about 3 months on a crappy 25/5 Comcast connection to complete.
Since then, I have upgraded to 125/10 Comcast connection and CrashPlan has been more or less able to keep up using minimal de-duping.
Following this blog post significantly sped up my initial backup.. I don't recommend keeping the mentioned settings after the initial backup window unless you don't mind wasting bandwidth by essentially not de-duping anything.
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.
See this I had the same troubles and this fixed it.
Basically, Crashplan made undocumented changes to the 4.3 client that requires some configuration file modifications in order for the GUI client to connect to a headless box.
ripme works very well for pulling images from entire subreddits. It handles dozens of sources of data (imgur, gfycat, etc). The only thing I don't care for is that it doesn't preserve the post title.
This isnt the most accurate resource, but according to CamelCamelCamel (Amazon price monitoring), most drives seem to go down almost steady overtime: WD RED 3TB, Seagate 4TB
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
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.
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
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.
Backblaze B2 is around that price point assuming you're not uploading/deleting a significant number of files after the initial upload.
You must be new here.
TMSU is by far the best solution I have come across.
IMO the drives are fine, but their RMA process is so awful that I would never buy another Toshiba drive again.
Yes.
Not exactly. Some external enclosures (WD, specifically) have a hardware encryption module in the external enclosure and the key cannot (easily) be exported so if the enclosure fails or the drive is shucked and added to NAS it would be unreadable.
You may want to use either
2>&1to redirect stderr to the file as well, or&>if you're using a newer version of bash as your shell which will accomplish the same thing.I doubt something like this exists. The best bet would be to use Google Custom Search API which is limited to 100 requests/day for free (or $50/m for 10K requests/day).
DOM parsing could be an option, but Google would certainly flag your IP with a Captcha response in no time.
Thank you for the feedback!
I'm going to make some tweaks to my original post:
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.
Glad it worked. I had a few minutes free tonight and built (part of) the functionality directly into RipMe. I have submitted a PR - pending /u/MetaPrime approval you may not need to use the wrapper script for much longer.
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:
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:
Linux/OSX
If you're on OSX/Linux you should have everything except
JSON::XSandLWP::Simplealready 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
dnfwithyum):If you're on OSX you will need to use
cpanto handle the installation. I personally use aperlbrewenvironment 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.
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:
Sure let me see what I can do. Give me a few hours.
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:
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.
I'm not I see this as an issue. Its your responsibility to have multiple, redundant, backups - not the backup provider itself.
My initial backup was only around 3TB over a year ago (closer to two years, probably). It look about 3 months on a crappy 25/5 Comcast connection to complete.
Since then, I have upgraded to 125/10 Comcast connection and CrashPlan has been more or less able to keep up using minimal de-duping.
Following this blog post significantly sped up my initial backup.. I don't recommend keeping the mentioned settings after the initial backup window unless you don't mind wasting bandwidth by essentially not de-duping anything.
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.
See this I had the same troubles and this fixed it.
Basically, Crashplan made undocumented changes to the 4.3 client that requires some configuration file modifications in order for the GUI client to connect to a headless box.
ripme works very well for pulling images from entire subreddits. It handles dozens of sources of data (imgur, gfycat, etc). The only thing I don't care for is that it doesn't preserve the post title.
This isnt the most accurate resource, but according to CamelCamelCamel (Amazon price monitoring), most drives seem to go down almost steady overtime: WD RED 3TB, Seagate 4TB
At this rate, 1TB HDDs will be given out like candy in the same way 4GB flash drives are now in a few months.
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
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.
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.
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.