Backblaze B2 Freenas



What's the easiest way to backup my entire FreeNAS dataset to Backblaze's B2 service? I've decided to use Backblaze B2 for cloud backups since it is the most cost effective for the amount of data I need to store. What would be the best way for me to backup to it. I'd need to backup my entire dataset or a few user's folders at the very least. Can confirm FreeNAS works as expected - this ticket should be closed. Thanks for your help! The issue was that Backblaze / B2 would retain old copies of files after deletion for about 3-4 days. This happens even when 'File Lifecycle' is set to 'Keep only the last version'. For what it may be worth to FreeNAS users, I replaced /usr/local/bin/rclone with the rclone v1.52.0-023-g399e8c0b-fix-3991-b2-copy-beta and successfully had a b2 sync complete which previously had hung up on the Copy source too big for modification time update issue.

FreeNAS and Unraid are network-attached storage operating systems based on Open Source operating systems. Both support the SMB, AFP, and NFS sharing protocols, Open Source filesystems, disk encryption, and virtualization.
Backblaze b2 cloud storage

FreeNAS

FreeNAS is an operating system that can be installed on virtually any hardware platform to share data over a network. FreeNAS is the simplest way to create a centralized and easily accessible place for your data. Use FreeNAS with ZFS to protect, store, and back up all of your data. FreeNAS is used everywhere, for the home, small business, and the enterprise.

Unraid

Unraid Server OS 6 is a storage operating system developed by Lime Technology that is designed to scale with a system’s hardware. Its RAID design supports a mix of devices, filesystems, and sharing policies.

Backblaze b2 synology
OverviewFreeNAS 11.3Unraid
Ease of UseGraphical User InterfaceGraphical User Interface
DocumentationUser Guide, How-To Videos, Training VideosWiki
Certified Hardware AvailableSoHo and BusinessNo
Open Source LicencePrimarily 2-clause BSDCommercial, requires paid licensing key
Base Operating SystemFreeBSD 11.3unRAID Server OS 6.8
File SystemOpenZFSXFS (default), BTRFS
Architecture64-bit64-bit
DownloadsOver 10 millionUnknown
Development LanguagePython, AngularClosed source
Open Source Repositoryhttps://github.com/freenasClosed source
Core Developers25+Lime Technology
Forums66,500+ users and over 550,000 postsover 630,000 posts
YouTube Community Videos134,000+ results and 22K+ subscribers169,000 results
Social Media28,800+ Facebook likes, 13,700 Twitter followers7,425 twitter followers, 124 Google+ members
RestorabilityDownload/Upload configuration file, default settings restore, boot environments/previous folder (CLI)
Built-in Visual ReportingCPU, disk, memory, network, processes, uptime, iSCSI, ZFSCPU, disk, memory, network, processes, uptime, Docker
Supported Disk ConfigurationsStripe, mirror, RAIDZ1, Z2, Z3, hot-swapStripe, single parity, dual parity
Encrypted Storage SupportSoftware Disk Encryption, Self-Encrypting Drives (SED), and Dataset Encryption in TrueNAS CORE 12Software Disk Encryption, Command Line Self-Encrypting Disks
Third Party Application SupportPlugins, Jails, bhyve VMs, Docker VMsDocker, KVM, Qemu
APIREST, websocketsnone
Alerting ServicesGUI, email, and SNMP alerts, integration with AWS-SNS, InfluxDB, Slack, Mattermost, OpsGenie, PagerDuty, VictorOpsGUI and email alerts
Built-in File Sharing ProtocolsSMB, NFS, AFP, WebDAVSMB, NFS, AFP
Built-in Block Storage ProtocolsiSCSInone
Other Built-in Network Protocolsrsync, FTP, TFTP, LLDP, SSH, DDNS, SNMPFTP, rsync (CLI), SSH (CLI)
Built-in Cloud SynchronizationAmazon S3, Backblaze B2, Box, Dropbox, FTP, Google Cloud Storage, HTTP, Hubic, Mega, Microsoft Azure Blob Storage, Microsoft OneDrive, pCloud, SFTP, WebDAV, YandexCommand line
Built-in Directory ServicesActive Directory, LDAP, Kerberos, NISActive Directory
Built-in Hardware ProtocolsS.M.A.R.T., SCSI Enclosure Services (SES), UPSS.M.A.R.T., UPS (APC only)
Built-in Virtualizationbhyve, DockerKVM, Qemu
If you have any updates or corrections to this page, please contact us at marketing[at]ixsystems.com

Bug #34414

Cloud sync task to Backblaze B2 doesn't delete files on remote

Closed
No priority
Vladimir Vinogradenko
Middleware
Medium
Behaves as Intended
Yes
Yes

Backblaze B2 Synology

Yes
No
n/a
No

Description

Setting up a Backblaze B2 backup task runs successfully, but fails to delete data in the bucket.

Settings:
Direction: Push
Credential: Backblaze B2
Path <some test path with files in it>
Transfer Mode: Sync

I'm not sure where to capture relevant log files, but I can provide those if you let me know where to look.

History

#1 Updated by Dru Lavigne almost 3 years ago

  • Category changed from OS to Middleware
  • Assignee changed from Release Council to Vladimir Vinogradenko
  • Private changed from No to Yes

Vlad: please let Daniel know which log files would be useful to attach.

#3 Updated by William Grzybowski almost 3 years ago

Freenas Backblaze B2 Encryption

  • Target version changed from Backlog to 11.3
  • Severity changed from Med High to Medium
Veeam

Vladimir, can you investigate this for 11.3, please?

It seems the user is using sync mode already, so perhaps its some issue in rclone backblaze backend?

#4 Updated by Vladimir Vinogradenko almost 3 years ago

  • Status changed from Unscreened to Blocked
  • Reason for Blocked set to Waiting for feedback

I was not able to repeat that neither on rclone that ships with 11.1 nor in 11.2? Files were deleted correctly. The only reason for behavior described I can imagine is reaching transactions limit. Daniel, have you found the solution?

#5 Updated by Daniel Schuler almost 3 years ago

I'm checking if I can reproduce this problem now - I have a backup that's running that should be finished by Tuesday (7/24) and will provide an update.

I do have about 120k files from a Time Machine backup - when I tried sending this manually using Backblaze's B2 tool, the tool also errored out after deleting 70k files or so, so it's possible that a limit is being reached.

It's also possible that the original backup never had a chance to finish, because the directory being sent to Backblaze kept changing every hour with each incremental Time Machine backup. The currently running backup is based on a cloned ZFS dataset, so it won't change, eliminating this possibility.

In any case, it would be convenient if the cloud sync task would use snapshots like the replication tasks to another FreeNAS host. Of course, that's a feature request, and not a bug :)

Again, I should have an update by Tuesday for this ticket. Thanks.

Freenas Backblaze B2

#6 Updated by Daniel Schuler over 2 years ago

  • Reason for Closing set to Behaves as Intended
  • Reason for Blocked deleted (Waiting for feedback)

Can confirm FreeNAS works as expected - this ticket should be closed. Thanks for your help!

The issue was that Backblaze / B2 would retain old copies of files after deletion for about 3-4 days. This happens even when 'File Lifecycle' is set to 'Keep only the last version'. Files are marked as 'hidden' in the web interface, so you should still get the latest copy if pulling from a server.

According to Backblaze support, old copies should be auto deleted in 24 hours, but I consistently saw this take process take several days. During this time, data usage for the bucket will be the sum of current and deleted files.

Backblaze B2 Freenas

#7 Updated by Dru Lavigne over 2 years ago

  • Status changed from Blocked to Closed
  • Target version changed from 11.3 to N/A
  • Private changed from Yes to No

Also available in: AtomPDF