LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-08-2017, 06:52 AM   #1
os2
Member
 
Registered: Dec 2003
Location: Canada
Distribution: openSUSE Tumbleweed
Posts: 209

Rep: Reputation: 30
backup some folder


hi

i try to backup my home dir (only some folder) with rsync.

i use include and exclude possibility.

In a script file i have

Code:
BDIR=/home/$USER
DEST=/run/media/bob/Lexar

rsync --no-owner --no-group -a -r -v --delete --prune-empty-dirs -delete --delete-excluded --include-from=$INCLUDES --exclude-from=$EXCLUDES  $BDIR $DEST
it seem like every time i run this script that take a long time...even if nothing has changed in the bdir

any idea?

thanks
 
Old 08-08-2017, 06:58 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
see man rsync, look for -n, -v, -i
 
Old 08-08-2017, 07:03 AM   #3
os2
Member
 
Registered: Dec 2003
Location: Canada
Distribution: openSUSE Tumbleweed
Posts: 209

Original Poster
Rep: Reputation: 30
i already use v

n it's for doing a trial
i it's for display a change of all update
 
Old 08-08-2017, 07:09 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
yes, and you will see what will try to do rsync. And probably that will help you to understand why does it take so long (probably scanning a lot of files/dirs)?
 
Old 08-08-2017, 07:17 AM   #5
os2
Member
 
Registered: Dec 2003
Location: Canada
Distribution: openSUSE Tumbleweed
Posts: 209

Original Poster
Rep: Reputation: 30
problem is not really that take time... problem is why that backup file who has not been modified
 
  


Reply

Tags
backup, rsync



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] automatic backup a folder ac_kumar Linux - Newbie 2 03-17-2012 02:13 PM
how can backup a remote server(only folder needed) with ftp ,daily backup? ahjafari Linux - Newbie 1 10-26-2011 04:04 PM
Backup a Folder epamuk Linux - General 4 02-16-2010 06:38 AM
Newbie trying to write a simple backup script to backup a single folder Nd for school stryker759a Linux - Newbie 2 09-16-2009 08:52 AM
backup folder (rsync) os2 Linux - Software 4 03-29-2006 09:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:24 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