- Backup files from Linux to a Windows server
- By Adam
- 2 replies on “Backup files from Linux to a Windows server”
- 31 Best Free Linux Backup Software (Updated 2020)
- 25 Outstanding Backup Utilities for Linux Systems in 2020
- Honorable Mention – CloudBerry Backup
- 1. Rsync
- 2. Fwbackups
- 3. Bacula
- 4. Backupninja
- 5. Simple Backup Suite (sbackup)
- 6. Kbackup
- 7. BackupPC
- 8. Amanda
- 9. Back In Time
- 10. Mondorescue
- 11. Box Backup Tool
- 12. Luckybackup
- 13. Areca
- 14. Bareos Data Protection
- 15. BorgBackup
- 16. Restic
- 17. rsnapshot
- 18. Burp
- 19. TimeShift
- 20. Duplicity
- 21. Déjà Dup
- 22. UrBackup
- 23. rclone
- 24. Relax-and-Recover
- If You Appreciate What We Do Here On TecMint, You Should Consider:
Backup files from Linux to a Windows server
By Adam
Post date
Ok, this may be my last disaster recovery and backup blog for a long time. As you can probably tell from the title this blog entry is all about keeping backup strategies as cheap as possible.
My strategy is to backup all of my Windows and Linux servers to one central Windows server that is running a Tivoli backup agent. All of my servers are hosted elsewhere, and since it costs $99.00 per server to backup I am getting the most for my money by only backing a single server to tape/SAN. However that single server carries all of the files that need to be remotely backed up to tape/SAN.
My earlier posts show how to backup the Windows servers:
Windows backup bat script using xcopy
And I also showed how to backup a Linux server to a local file:
Linux backup using CRON to local directory
Now I will show how I moved the files backed up on the Linux servers to the Windows server prior to tape/SAN backup. I have decided to use Samba and mount a directory pointing to a shared folder on the Windows server. Lets begin:
- Create a share on the Windows server to use as your backup location.
- Create a user to use this share, and give the user permissions to use it.
- Pick, or create, a user that you’re going to use to backup the files. Log in as this user and type ‘id’ to get the numeric ID of the user in the Linux OS. (You will need it later.)
- Become ‘root’. (This will enable you to perform the next tasks without problems.)
- Install samba and samba-client if they are not installed yet.
yum install samba yum install samba-client
You will need to answer ‘y’ to when prompted.
By default only the root user can mount or unmount a cifs, so we must open it to other users.
chmod 4755 /sbin/mount.cifs chmod 4755 /sbin/umount.cifs
chown userfrom#1 /mnt/sharename
//WINDOWSHOST/sharename /mnt/sharename cifs credentials=/root/smblogin,uid=500,noauto,user 0 0
username=WINDOWS USERNAME password=WINDOWS PASSWORD
chown userfrom#1 /root/smblogin chmod 600 /root/smblogin
mount /mnt/sharename ls -la /mnt/sharename umount /mnt/sharename
#!/bin/sh mount /mnt/sharename cp -r /path/to/file.tar.gz /mnt/sharename/path/to/file.tar.gz umount /mnt/sharename
Of course you can add this to the end of the file described in Linux backup using CRON to local directory which would create a complete solution for backing up files, then relocating them to a remote Windows server.
Next you will add an entry to the crontab of the user from #1 to happen automagically.
crontab -e -u userfrom#1
# Backup at 1:00 A.M. every day. Call ‘man 5 crontab’ for more information * 1 * * * /path/to/backup.sh
Now once this is all done you can rest a little bit easier knowing that your servers are backed up. I hear the beach calling me now….ttyl.
By Adam
Speaker, author, consultant, OSS contributor, SoFloPHP UG and SunshinePHP Conf organizer, RunGeekRadio Host, Long distance runner and ultra marathoner.
2 replies on “Backup files from Linux to a Windows server”
Is there a way to copy a specific number of files in your backup? I have a directory which will have several thousands files created per day and I would like to move 500 at a time to a sub directory, zip them up, and then FTP them to another server as back up. Thanks for you help.
Источник
31 Best Free Linux Backup Software (Updated 2020)
Backup software is used to perform a complete back up of a file, data, database, system or server. It enables users to make a duplicate of everything contained on the original source. This type of software is also used to perform a recovery of the data or system in the event of a disaster.
Making file backups is an essential activity for all users, yet many users do not take adequate steps to protect their data. Whether a computer is being used in a corporate environment, or for private use, the machine’s hard disk may fail without any warning signs. Alternatively, some data loss occurs as a result of human error. Without regular backups being made, data will inevitably be lost even if the services of a specialist recovery organisation are used.
While it has always been possible to use command line tools to backup files in Linux, this can be a daunting task for beginners and end-users. This article explores how making regular backups can be a painless task. We explore backup software with intuitive graphical interfaces, applications that backup systems with snapshots, whilst not forgetting the powerful command-line tools that exist.
To provide an insight into the quality of software that is available, we have compiled a list of 31 high quality free Linux backup tools. Hopefully, there will be something of interest for anyone who wishes to safeguard their hard work.
Now, let’s explore the 31 backup tools at hand. For each title we have compiled its own portal page, providing a screenshot of the software in action (where relevant), a full description with an in-depth analysis of its features, together with links to relevant resources.
Backup | |
---|---|
BackupPC | High-performance, enterprise-grade system for backing up PCs |
restic | Fast, efficient and secure backup software |
Clonezilla | Offers similar functionality to Symantec Ghost |
TimeShift | Takes regular incremental snapshots of the filesystem |
Mondo Rescue | A powerful disaster recovery suite |
Duplicity | Encrypted bandwidth-efficient backup |
Borg | Deduplicating backup software |
bup | Backup a system based on the git packfile format |
Déjà Dup | Hides the complexity of doing backups the Right Way |
Bacula | Network backup, recovery and verification |
Amanda | Advanced Maryland Automatic Network Disk Archiver |
Duplicati | Store encrypted backups online |
Bareos | Backup Archiving Recovery Open Sourced |
rsync | Fast remote file copy program |
Back in Time | Equivalent of OS X’s Time Machine |
UrBackup | Easy to setup open source client/server backup system |
Rescuezilla | Easy backup, recovery & bare metal restore |
KBackup | Backup program targeted at non-computer experts |
fwbackups | Feature-rich backup software |
rsnapshot | Local and remote filesystem snapshot utility |
Partclone | Provides utilities to save and restore used blocks on a partition |
XtraBackup | Backup tool for InnoDB and XtraDB databases |
kup | Backup scheduler for the Plasma desktop |
FOG | Cloning / imaging solution / rescue suite |
BURP | Uses librsync to save network traffic and space |
PING | Also offers similar functionality to Symantec Ghost |
tar | Tar archiving utility |
dar | Full featured archiver with support for differential backups |
Cronopete | Graphical backup utility based on Apple Time Machine |
SafeKeep | Centralized and easy to use backup program |
Cedar Backup | Local and remote backups to CD or DVD media |
You may have read the story about a man deleting his entire company with one mistaken piece of code: accidentally misusing rm -rf in Ansible. It was a fairly obvious hoax designed to be a viral marketing effort. It achieved that goal as scores of media sources carried the story. But at least it will have alerted readers to the importance of making sure their data is safe. But remember, human error is not the only source of data loss. Other ways of losing data include mechanical damage to RAID or disks, file system corruption, theft, fire, as well as viruses and malware.
Источник
25 Outstanding Backup Utilities for Linux Systems in 2020
Backup on personal computers or servers is always important to prevent permanent data loss. Therefore getting to know different backup tools is very important especially for System Administrators who work with large amounts of enterprise-level data and even on personal computers.
It is always a good practice to keep on backing up data on our computers, this can either be done manually or configured to work automatically. Many backup tools have different features that allow users to configure the type of backup, time of backup, what to backup, logging backup activities and many more
In this article, we shall take a look at 25 outstanding backup tools that you can use on Linux servers or systems.
Honorable Mention – CloudBerry Backup
CloudBerry Backup for Linux is a cross-platform cloud backup solution with advanced backup configuration settings and providing total security of data.
CloudBerry Backup for Linux
With this tool you can backup files and folders to the cloud storage of your choice: it supports more than 20 wide-known cloud storage services. CloudBerry Backup works with Ubuntu, Debian, Suse, Red Hat, and other Linux distributions and is also compatible with Windows and Mac OSs.
The primary backup features are:
- Compression
- 256-bit AES Encryption
- Scheduled backup
- Incremental backup
- Command-line interface
- Retention policy and more.
1. Rsync
It is a command-line backup tool popular among Linux users especially System Administrators. It feature-rich including incremental backups, update whole directory tree and file system, both local and remote backups, preserves file permissions, ownership, links and many more.
It also has a graphical user interface called Grsync but one advantage with the rsync is that backups can be automated using scripts and cron jobs when used by experienced System Administrators on the command line.
Rsync Backup Tool
We’ve covered so many articles on rsync tool in the past, you can go through them below:
2. Fwbackups
It is free and open-source software which is cross-platform and feature-rich and users can contribute to its development or just participate in testing it. It has an intuitive interface that allows users to do backups easily.
It has features such as:
- Simple interface
- Flexibility in the backup configuration
- Remote backups
- Backup an entire file system
- Exclude files and directories plus many more
fwbackups for Linux
3. Bacula
It is open-source data backup, recovery and verification software that is designed to be enterprise-ready with certain complexities, though these complexities actually define its powerful features such as backup configurations, remote backups plus many more.
It is network-based and is made up of the following programs:
- a director: program that supervises all operations of Bacula.
- a console: program that allows a user to communicate with the Bacula director above.
- a file: program that is installed on the machine to be backed up.
- storage: program that is used to read and write to your storage space.
- catalog: program responsible for the databases used.
- Monitor: program that keeps track of all events happening in different parts of Bacula.
Bacula Backup Tool for Linux
4. Backupninja
It is a powerful backup tool that allows users to design backup activity configuration files that can be drooped in /etc/backup.d/ directory. It helps to perform secure, remote and also incremental backups over a network.
It has got the following features:
- Easy to read ini style configuration files.
- Use scripts to handle new types of backups on your system.
- Schedule backups
- Users can choose when status report emails are mailed to them.
- Easily create a backup action configuration file with a console-based wizard (ninjahelper).
- Works with Linux-Vservers.
BackupNinja Tool
5. Simple Backup Suite (sbackup)
It is a backup solution for Gnome desktop where users can access all configurations via the Gnome interface. Users can use regex to specify file and directory paths during the backup process.
It has the following features:
- Creates compressed and uncompressed backups.
- Supports multiple backup profiles.
- Allows logging, email notifications.
- Scheduled backups and manual backups.
- Split uncompressed backups into several chunks.
- Supports local and remote backups.
Simple Backup sbackup Tool
6. Kbackup
It is an easy to use backup tool for the Unix operating system and can be used on Linux. It can create archives and compress them using tar and gzip utilities respectively.
Kbackup has got the following features:
- User-friendly and menu-driven interface.
- Support for compression, encryption and double buffering.
- Automated unattended backups.
- High reliability.
- Support for full or incremental backups.
- Remote backup across networks.
- Portable and extensive documentation among others.
kBackup Tool for Linux
7. BackupPC
It is a cross-platform backup software that can run on Unix/Linux, Windows and Mac OS X. It is designed for enterprise-level use with a high-performance measure. BackupPC can be used on servers, desktop, and laptop computers.
It has some of the following features:
- File compression to reduce disk space usage.
- No need for client-side software.
- Flexibility during the backup restoration
- Flexibility in configuring through different parameters.
- User notifications about the need for backups and so on.
BackupPC Server
8. Amanda
Amanda is open-source software that works on Unix/GNU Linux and Windows. It supports native backup utilities and formats such as GNU tar for backups on Unix/Linux. And for backups on Windows machine, it uses a native Windows client. Users can set up a single backup server to store backups from several machines on a network.
9. Back In Time
It is simple and easy to use backup tools for Linux operating system and works by taking snapshots of specified directories and backing them up.
It has features such as configuring:
- Storage location to save snapshots.
- Manual or automatic backups.
- Directories to backup.
Back in Time Backup
10. Mondorescue
This is a free backup and rescue software that is reliable and all features-inclusive. It can perform backups from personal computers, work stations or servers to hard disk partitions, tapes, NFS, CD-[R|W], DVD-R[W], DVD+R[W] and many more.
It also has data rescue and recovery abilities during the backup process in case of any destructive events.
Mondorescue Backup Tool for Linux
11. Box Backup Tool
It is an open-source backup tool and can be configured to work automatically. It has features such as:
- Online backups
- Backup daemon for automated backups
- Storage of backups in files
- Data compression and encryption
- Tape like behavior
- Choice of backup behavior plus many others
12. Luckybackup
It is a free powerful, quick, reliable and easy to use backup and sync tool that is powered by the Rsync backup tool.
It is feature-rich with features such as:
- Preserve ownership and file permissions.
- Create multiple backup snapshots.
- Advanced options files and directories.
- Exclude options and use rsync options and many more.
LuckyBackup Tool
13. Areca
It is an open-source backup tool that is intended for personal use and it allows a user to select a set of files or directories to backup and select the backup method and storage location.
It has features such as:
- Email notifications about the backup process.
- Simplicity in use in terms of configurations.
- Browse archives and many more.
14. Bareos Data Protection
It is an open-source set of programs that allows users to backup, recover and protect data on Linux systems. It is an idea forked from the Bacula backup tool project and works on a network in a client/server architecture.
The basic functionalities are free but payment is required to use professional backup features. It has features of the Bacula backup tool.
15. BorgBackup
BorgBackup is a free open source, efficient as well as secure command-line based deduplicating archiver/backup tool with support for compression and authenticated encryption. It can be used to perform daily backups and only changes in files since the last backup is archived, using the deduplicating approach.
The following are some of its key features:
- It is easy to install and use.
- Supports encryption of all data.
- Uses the authenticated encryption techniques to ensure secure backups.
- It is also very fast.
- Supports space-efficient storage.
- It also supports optional compression of data.
- Supports remote backups over SSH.
- Supports mounting backups in the same way as filesystems.
Borg Backup Tool For Linux
16. Restic
Restic is a free open source, efficient, easy-to-use, fast and secure command-line based backup program. It is designed to secure backup data against attackers, in any kind of storage environment.
The following are its key features:
- It is cross-platform, works on Unix-like systems such as Linux, and also Windows.
- It is easy to install, configure and use.
- Uses encryption for securing data.
- It only backs up changes in data.
- Supports verifying of data in the backup.
Restic Backup Tool for Linux
17. rsnapshot
Rsnapshot is a free open source backup tool for Unix-like operating systems, based on rsync. It is designed to take a filesystem snapshot on local machines, as well as remote hosts over SSH. Rsnapshot supports periodic snapshots and users can automate backups via cron jobs. In addition, it is also efficient in managing disk space used for backups.
18. Burp
Burp is a free open source, efficient, feature-rich and secure backup and restores software. It is designed to work over a network in a client/server architecture (server mode works on Unix-based systems such as Linux, and clients run on Unix-based and Windows systems), and in that case aims to minimize network traffic for reliable results.
Below are its key features:
- Supports two independent backup protocols: protocol I and II; each with different features.
- Supports network backups.
- Supports resuming of interrupted backups.
- Supports backing up and restoring files, directories, symlinks, hard links, fifos, nodes, permissions as well as timestamps.
- It also supports the scheduling of backups.
- Supports email notifications about successful or failed backups.
- Offers a live ncurses monitor on the server.
- Supports storage data deduplication like many other backup tools.
- Supports compression of data on a network and in storage.
- Supports auto signing of SSL certificate authority and client certificate, and many others.
19. TimeShift
Timeshift is a backup and restores tool for Linux systems which takes incremental snapshots of the filesystem at regular intervals. It works in a similar way as rsnapshot (since it uses rsync and hard-links to create snapshots), but offers certain unique features that are not present in its counterpart. Additionally, it is designed to only backup system files and settings.
The following are key features of Timeshift:
- Only takes a snapshot of system file and settings, user data such as pictures, music, etc are not archived.
- Takes filesystem snapshots using rsync+hardlinks, or BTRFS snapshots.
- Supports scheduled snapshots.
- Supports multiple backup levels with excluding filters.
- Allows for restoring snapshots during system runtime or from live devices(such as USB).
Timeshift System Restore Tool for Linux
20. Duplicity
Duplicity is a free open source, secure and bandwidth-efficient backup tool based on rsync. It creates encrypted backups of directories in tar-format archives and backs them on the local or remote machine over SSH. When launched for the first time, it performs a full backup, and in subsequent backups in the future, it only records parts of files that have changed.
Below are duplicity’s key features:
- It’s easy-to-use and employs a standard file format.
- It only tracks and considers changes in files since the last backup.
- It creates incremental archives that are space-efficient.
- Creates encrypted and/or signed archives for security purposes.
- Supports signatures and deltas of directories and regular files in tar-format.
21. Déjà Dup
Déjà Dup is a simple, secure and easy-to-use backup tool for Linux systems built for encrypted, off-site, and regular backups. It allows for local, remote, or cloud backup storage with services such as Google Drive and Nextcloud.
Deja Dup Backup
Below are Déjà Dup key features:
- Uses duplicity as the backend.
- Supports encryption and compression of data.
- Supports incremental backs up, allowing you to restore from any particular backup.
- Supports scheduling of regular backups.
- You can easily integrate it into a GNOME desktop environment.
22. UrBackup
UrBackup is an open-source easy to setup client/server backup system for Linux, Windows and Mac OS X, that through a mixture of image and file backups carry out both data security and speedy restoration time.
UrBackup Tool for Linux
Below are UrBackup key features:
- Secure and efficiently complete and incremental image and file backups via a network.
- A web interface that displays the status of the clients, current activities and statistics.
- Backups reports send to users or administrators.
- Easy to use file and image restore using CD/USB drive.
- Easy to configure and use file backup access.
- E-Mail notifications if a client machine is not backed up for a given amount of time.
23. rclone
Rclone is a powerful command-line program written in Go language, used to sync files and directories from multiple cloud storage providers such as Amazon Drive, Amazon S3, Backblaze B2, Box, Ceph, DigitalOcean Spaces, Dropbox, FTP, Google Cloud Storage, Google Drive, etc.
rclone Sync Data
24. Relax-and-Recover
Relax-and-Recover is a setup-and-forget Linux bare metal disaster recovery and system migration program, which is used to create a bootable image and restores from an existing backup image. It also enables you to restore to the different system hardware and can, therefore, be used as a migration tool as well.
Relax and Recover Tool for Linux
Summary
Always remember that backup is very important and helps prevent data loss and you can use various backup tools for Linux to carry out a regular backup of your data.
You could be using a backup tool that we have not looked at, let us know of it by posting a comment and hope you find the article helpful and always remember to stay connected to Tecmint.com.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
Источник