Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 29 Aug 2014, 01:54
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Crontab not saving to external drive
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Tue 14 May 2013, 17:12    Post subject:  Crontab not saving to external drive
Subject description: Lucid 5.2.8 full install
 

I set up this crontab that would sync my LP's folder on SDA2 to my LPs folder on SDB1, my external USB drive. My drive partition is 45GB. When my crontab runs every hour it is copying files to my 45GB partition instead of my external USB drive therefore filly up my drive partition and leaving me with a drive that is totally full. What am I doing wrong? All I want to do is have a copy of my sda2/LPs folder for safekeeping. I'm in the process of digitizing all my records albums (around 5000). Big job. Smile And what I love is that I am using Puppy as my main OS distro to do this!

I'm using a full install of Lucid 5.2.8

rsync -r -t -p -o -g -v --progress --delete -s /mnt/sda2/LPs/ /mnt/sdb1/LPs
Back to top
View user's profile Send private message Visit poster's website 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Tue 14 May 2013, 20:22    Post subject:  

from man file using --delete is tricky

Quote:


Beginning with rsync 3.0.0, the recursive algorithm used is now an
incremental scan that uses much less memory than before and
begins the transfer after the scanning of the first few directories
have been completed. This incremental scan only affects our
recursion algorithm, and does not change a non-recursive transfer.
It is also only possible when both ends of the transfer are at least
version 3.0.0.
Some options require rsync to know the full file list, so these options
disable the incremental recursion mode. These include:
--delete-before, --delete-after, --prune-empty-dirs, and
--delay-updates. Because of this, the default delete mode
when you specify --delete is now --delete-during when both
ends of the connection are at least 3.0.0 (use --del or
--delete-during to request this improved deletion mode explicitly).

See also the --delete-delay option that is a better choice than using --delete-after.
Back to top
View user's profile Send private message 
don570


Joined: 10 Mar 2010
Posts: 3259
Location: Ontario

PostPosted: Tue 14 May 2013, 20:25    Post subject:  

15 examples are explained here

http://www.thegeekstuff.com/2010/09/rsync-command-examples/

.
Back to top
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Tue 14 May 2013, 20:31    Post subject:  

Thanks don570!

So you think it is the delete option that is causing problems? All I want is for both folders to be the same. If a file is deleted in folder one, then folder two should reflect the change as an example. But what I don't get is why it is synching to my drive partition instead of to my usb device. My drive partition is 45GB. The folder I am syncing is over 100GB. It seems that instead of syning to my usb drive it's somehow syncing back to my drive partition.
Back to top
View user's profile Send private message Visit poster's website 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Thu 16 May 2013, 20:44    Post subject:  

rmcellig wrote:
But what I don't get is why it is synching to my drive partition instead of to my usb device.

Are you sure the USB drive is being mounted before rsync is run? If nothing has been mounted at /mnt/sdb1 it is just another directory in the same partition in which the /mnt/ directory lives, so any files copied to it will take up space in that partition.
Back to top
View user's profile Send private message 
rmcellig

Joined: 19 Nov 2011
Posts: 922
Location: Ottawa Ontario Canada

PostPosted: Thu 16 May 2013, 22:18    Post subject:  

Great point! I will have to look into that.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0612s ][ Queries: 11 (0.0108s) ][ GZIP on ]