LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-07-2018, 09:30 AM   #1
rohit.raih
LQ Newbie
 
Registered: Mar 2018
Posts: 3
Blog Entries: 1

Rep: Reputation: Disabled
Rsync Back up incremental


I HAVE MOUNTED 10 window folder in Linux and we take regular backup of window folder but i want to take backup incremental and date wise. kindly suggest best possible answer.

Note. the window folders are 20-25GB


the file system of win folder is NTFS

So rsnapshot take the backup of ntfs file system and backup folder is also ntfs.????

Last edited by rohit.raih; 08-07-2018 at 10:08 AM.
 
Old 08-07-2018, 09:56 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,735

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
Use rsnapshot, which uses rsync to make periodic, incremental backups.
 
Old 08-11-2018, 07:21 AM   #3
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,144

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
The target filesystem and source filesystem don't have to be the same. Filesystem only matters to the current OS. NTFS files can be backed up to ext4 (or whatever you choose) without issue. Can be restored as well without issue. You could make the backup filesystem NTFS but it would be better to be a linux filesystem.
 
Old 08-11-2018, 08:24 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,346
Blog Entries: 28

Rep: Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145Reputation: 6145
Code:
rsync -a
From the man page:

Quote:
-a, --archive archive mode; equals -rlptgoD (no -H,-A,-X)
When you decode the tech-speak, that means that the command backs up only files that are new or have been changed since the last rsync. (When I decided to learn how to use rsync, it took me I think about two weeks off-and-on to figure that out.)
 
Old 08-12-2018, 09:33 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by frankbell View Post
When you decode the tech-speak, that means that the command backs up only files that are new or have been changed since the last rsync. (When I decided to learn how to use rsync, it took me I think about two weeks off-and-on to figure that out.)
I think I miss the -u for newer and changed files. Actually it means skip files which are newer on the destination.

jlinkels

Last edited by jlinkels; 08-12-2018 at 09:37 AM.
 
Old 08-12-2018, 10:15 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,679

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
The BEST answer is not to use a SYNC package at all, but a real backup application. For you purposes, I would look for one that supports generational backups (full and incremental with near point-in-time restore). I prefer to set up a network backup host and run BURP: which has clients for Windows and all Unix like systems (Linux, BSD, etc).
https://burp.grke.org/

There are stand-alone solutions that might serve your purpose.
 
Old 08-16-2018, 07:41 AM   #7
rohit.raih
LQ Newbie
 
Registered: Mar 2018
Posts: 3

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Code:
rsync -a
From the man page:



When you decode the tech-speak, that means that the command backs up only files that are new or have been changed since the last rsync. (When I decided to learn how to use rsync, it took me I think about two weeks off-and-on to figure that out.)

Thanks for your help

I have mounted some folders from file server and every day users are updated in same file. i want to take backup of each file day wise,

Please help me, if possible send me rsync command with parameters.
 
Old 08-16-2018, 08:26 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,685

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by rohit.raih View Post
Thanks for your help
I have mounted some folders from file server and every day users are updated in same file. i want to take backup of each file day wise, Please help me, if possible send me rsync command with parameters.
Restating your question provides nothing new, and doesn't show us anything further you've done/tried. You were given options and suggestions above; have you actually tried any of them? Read the man page on rsync? Looked at the backup software that wpeckham recommended?? Looked at ANY backup software??

You were given suggestions and hints; it is now up to YOU to try them, and figure out what works for your environment.
 
Old 08-16-2018, 03:35 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
I'd be thinking of using Windows tools for versions and backups over rsync ??

I'd use same file system (and version) unless you properly compress the data with a program that may save any unique filesystem attributes.

The exact command needed may require more information.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
incremental backups by using rsync acidrop Linux - Server 5 12-06-2012 10:54 AM
rsync incremental backups tqz Linux - Newbie 9 09-15-2012 03:22 AM
Rsync for incremental backups Meson Linux - General 1 10-30-2007 09:44 AM
rsync incremental backup sachin_keluskar Linux - Software 1 06-29-2005 02:09 AM
Rsync for incremental backups? Phaethar Linux - Software 3 12-04-2003 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration