r/HomeServer • • 15d ago

First time building a home backup server

Hi!
After breking my phone and loosing 3yrs worth of pictures, I decided it's maybe time to setup my own backup/personal server. My budget for the machine is ~200 euro (without hdd), to which I was thinking about adding between 4 to 8 TB of storage (RAID5 or just mirroring).

I have a couple of question:
- I was looking for old Optiplex, in Spain you can find intel gen > 8 and 16gb ram starting from 160 euro. With current RAM prices it doesn't seem that bad, but what machine would be better in this price range?
- For HDD, I was looking into second hand SAS drives as they are much cheaper than SATA on second hand or refurbished websites (less lifespan probably too). What is your experience with those?
- Most Optiplex or Lenovo I have seen are SFF, so they fit only 1/maybe 2 3.5 hdd, but I saw they are very popular anyway. What is a good solution to host them outside the case? Do you use external HDD enclosures with USB connection and external power?

I haven't thought too much about software, probably it's gonna be a debian distribution with btrfs/zfs but it depends on the kind and quantity of hardware I buy.
What would you change in this?

0 Upvotes

14 comments sorted by

6

u/Zealousideal_Fly8402 15d ago

second hand SAS

You'll be spending extra money on a PCIe > SAS controller card; SAS drives are not compatible with standard SATA connections.

1

u/Joshua_00 15d ago

I found HBA + 3/4 SAS cables for ~50 on Wallapop (spanish second hand market), compared to the price of regular SATA drives I think it's still a win money-wise. But a PCI slot would be gone for the HBA tho.
I suppose it is only worth for 3+ HDD

1

u/Live-Company-5007 14d ago

I spent like 30 bucks on one they’re pretty cheap second hand

3

u/Master_Scythe 15d ago
  • optiplex is fine. 
  • SAS drives are louder hotter and need a SAS adaptor like LSI to run, but yes, they are manufactured to slightly better tolerances. 
  • regular SFF, if you dont have small kids or pets, can mount HDDs externalally with just a drill. Make holes in case lid, attach drives. Most hold 2x HDDs anyway, Internally. 

In the mean time, dont underestimate a 1TB USB stick on your keyring. I backup my phone every time I get a few minutes. 

1

u/Joshua_00 15d ago

Do SAS drives requires an ad-hoc airflow? I was thinking of recycling parts of an old case and just strap one/two fans to it.

Good point with the USB stick, I'll do it!

2

u/fonoro 11d ago

On the OptiPlex 7060 SFF specifically, the board has three SATA ports and Dell's configuration allows either one 3.5" bay or up to two 2.5" drives, not both, so RAID 5 inside the case is not realistic and you are down to a single data drive plus the M.2 boot SSD (up to 2 TB, SATA or NVMe). The four DDR4 UDIMM slots take non-ECC only, up to 64 GB, so if you want ZFS you should budget for 16 to 32 GB rather than the 8 GB these units usually ship with (a used 8GB DDR4-2400 stick runs around $78 new). For drives, second hand SAS disks need a SAS HBA, which the SFF has no slot for, so stick with SATA and consider USB-attached enclosures or a small NAS case if you want 4 to 8 TB. If you want internal mirroring or RAID, look at the Tower form factor of the 7060 instead of the SFF, which fits multiple 3.5" bays; also verify the CPU since only 65 W 8th Gen parts like the i5-8400 or i7-8700 are listed for SFF.

More detail on the slots and current prices on a page I maintain: https://partsprices.online/device/dell-optiplex-7060-small-form-factor-intel-8th-gen/guide/?utm_source=reddit

1

u/Joshua_00 11d ago

The website is very useful, thanks!

I think I ruled out the SAS for now, but I still need at least 2 3.5.., the 7060 is on my list, I am checking daily for possible deals.
Worst case I thought about make some holes in the cover and mount the HDD there

2

u/MrMotofy 14d ago

Just remember your server can fail catastrophically also... it really should be hacked up to another source ideally offsite

1

u/hilokamper 14d ago

Use older PC & install NAS freeware like Xigmanas (was Nas4Free, freenas etc. name change over the years). Personally have been using over 10 years. Early years I used junked pcs & cobbled together parts (mostly trial & error) to learn how to.

Currently still using XT form factor case with Asus board. Using raid with 4 HDD’s. Boots from thumb drive. Very minimal requirements to run.

1

u/Usual-Pen7132 14d ago

I use all used hard drives I've found on Facebook Marketplace, friends/relatives old pc's, or similar places and I bought a 80$ used/refurbished HP elitedesk which is very similar to an Optiplex and I stuffed as many SATA drives I could internally(3) and then bought a 5 bay external HD rack w/fan and it sits right beside that pc tower running OpenMediaVault as my NAS and I also use 2 more USB portable hard drives in addition so, there's 10 hard drives in total. 10 might sound like a ton of storage but, keep in mind this was a low budget build and all the hard drives are between 250gb - 2Tb drives so all of them added up isn't very extreme as far as total capacity and if someone has the budget to buy a few 5Tb+ drives or however much capacity they need then id suggest doing that over having 10+ smaller drives because the power use adds up and even worse, the heat they radiate definitely adds up in a small area or enclosed space but, my point is just that you can make a NAS on a small budget if you're willing to go find the drives or if you want to pay several hundreds of dollars then you can just buy a couple of large ones too.

1

u/Tony1Rice 13d ago edited 13d ago

Apparently it's not like this in other parts of the world, but I have not paid actual money for a used computer since about 1985. Whenever someone asks me, "How do I dispose of old computer junk?", I just say, "Bring it to me. I'll take care of it for you." I've had people bring me computers for disposal that have better specs than any I was using at the time... But also a lot of absolute junk.

Having said that, just about anything that can support a hard drive can be made to work as a backup server. For that purpose, I'm currently using a 2012 vintage Optiplex 790 to which I added a 4TB SATA HDD. To be clear, though, that is a SLED, not RAID, and it is subject to failure at any time without warning so it, in turn, is backed up to an identical drive attached to a different machine and super-important data is backed up to other media and stored off site. FWIW, this particular machine, while I did not "pay actual money for it", did come from a refurb seller - a friend bought it and gifted it to me - so, despite its age, this is not technically one of my many "junk" computers. As far as its performance and reliability, as a "refurbished" computer: It is what is, performance-wise and it is just rock solid reliability-wise. It's also decently quiet and power efficient.

On the Optiplex backup server, I had originally intended to use a USB3-connected external drive but foolishly failed to check the USB ports before buying the drive. It turned out the computer only had USB 2.0 ports which would have worked but would have been unbearably slow. I took the little HDD out of its USB 3 enclosure (which was not at all easy to do!) and installed it as a regular SATA drive inside the computer.

Hardware-wise, the Optiplex 790 has

  • Intel(R) Core(TM) i5-2400 CPU (4 cores, 4 threads 3 GHz)
  • 16 GB of DDR3 RAM
  • Intel integrated graphics (there's no monitor hooked up anyway)
  • A bunch of USB 2.0 ports
  • The boot disk is a 250 GB sata drive, formatted as a single ext4 partition.
  • The 4TB disk is formatted with a small EFI partition and one big ext4 partition.

Software wise, it mostly matches my "daily driver" machine:

  • The OS is Tiny Core Linux 17.0, x86_64
  • Backups are currently accomplished via scripted SFTP transfers, though I'm ever so slowly getting around to some other options

0

u/[deleted] 15d ago

[deleted] — view deleted comment

1

u/Joshua_00 15d ago

I really don't want to go for a off the shelf solution, I always liked working on e-waste and old components, this seemed a good way to start again :))

I see your point on SAS, I already was worried about the yearly consumption.
Also are the power supply included in those SFF enough for 3/4 SATA HDD or it's normal to have external power supply?

0

u/[deleted] 15d ago

[deleted] — view deleted comment

1

u/Joshua_00 15d ago

mid tower seems much rarer than SFF, I suppose companies buys and disposes of SFF in bulk
Another option I was thinking was to move the components to a mid/full tower, but I heard they are not ATX compatible and it can be a pain to fit it