Re: Rysnc Schedule

2007-07-19 Thread Rick Romero


About 4 hours after my reply I had a functional rsnapshot install -  
what took me so long (besides having 'real' work to do ;) was trying  
to figure out how to split up my vpopmail/domains directories so the  
rsync wouldn't take so long (because of so many files/directories).


I ended up using the 'include_conf' directive, and dynamically  
creating a file with just backup points.


It seems like a great solution, and was easy to install and setup.

Thanks!

Rick

On Jul 19, 2007, at 6:09 PM, sparty2809 wrote:



Sorry, I didn't mean to come off rude.  I appreciate the help.  I  
will look

into it and see how it works.

Thanks for all the suggestions.


Matt McCutchen-3 wrote:


On 7/19/07, Chris <[EMAIL PROTECTED]> wrote:
I know how to use the command prompt, was just curious if it had  
a gui.


OK.  Please don't take any offense at my offering a little extra
support in case you were a user who needed it.

So this can backup for 30 days and once 30 days comes up, it will  
delete

the
1st day and add the 31st?


Yes.  Just set a backup interval of "daily" with 30 snapshots in the
configuration file.  If you like, you can also add other intervals,
e.g., weekly snapshots for the past 10 weeks.

Matt
--
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart- 
questions.html





--
View this message in context: http://www.nabble.com/Rysnc-Schedule- 
tf4104577.html#a11699492

Sent from the Samba - rsync mailing list archive at Nabble.com.

--
To unsubscribe or change options: https://lists.samba.org/mailman/ 
listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart- 
questions.html


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rysnc Schedule

2007-07-19 Thread Rick Romero
On Thu, 2007-07-19 at 09:30 -0400, Matt McCutchen wrote:
> On 7/19/07, Rick Romero <[EMAIL PROTECTED]> wrote:
> > /usr/bin/find /var/backup/* -mtime +30 -exec rm -rf {} \;
> >
> > Anything older than 30 days gets deleted from /var/backup/
> 
> That's no good: it deletes individual files that happen to be older
> than 30 days from even yesterday's backup.  This is better:
> 
> find /var/backup -maxdepth 1 -mtime +30 -exec rm -rf {} \;

Oh of course - that's what I get for copying an existing cronjob and not
thinking it through.

> Sparty2809, are you sure you don't want to use rsnapshot?  It does all
> of this for you.

I very well may use rsnapshot - I've been putting off trying to do a
rotation like that on my own, it looks like a great solution.

Rick

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rysnc Schedule

2007-07-19 Thread Rick Romero

/usr/bin/find /var/backup/* -mtime +30 -exec rm -rf {} \;

Anything older than 30 days gets deleted from /var/backup/

On Thu, 2007-07-19 at 05:46 -0700, sparty2809 wrote:
> I guess I should have been clearer.  I know how to delete files/directories. 
> I am just not sure how to delete say the 31st and so forth.  
> 
> 
> 
> Chuck Wolber wrote:
> > 
> > On Wed, 18 Jul 2007, sparty2809 wrote:
> > 
> >> I understand how to do the rsync part, but how would I delete the files?
> > 
> > In linux, you delete files with the "rm" command... In windows you'd 
> > probably want to use "deltree"... Or, you could get really fancy and use 
> > directed charges of thermite, although that might make it difficult to 
> > re-use portions of the disk...
> > 
> > ..Chuck..
> > 
> > 
> > -- 
> > http://www.quantumlinux.com
> >  Quantum Linux Laboratories, LLC.
> >  ACCELERATING Business with Open Technology
> > 
> >  "The measure of the restoration lies in the extent to which we apply
> >   social values more noble than mere monetary profit." - FDR
> > 
> > 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
> > -- 
> > To unsubscribe or change options:
> > https://lists.samba.org/mailman/listinfo/rsync
> > Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Rysnc-Schedule-tf4104577.html#a11688212
> Sent from the Samba - rsync mailing list archive at Nabble.com.
> 

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync / Cygwin : Cannot Allocate Memory

2006-03-24 Thread Rick Romero

Rick Romero wrote:

Wayne Davison wrote:

On Fri, Mar 24, 2006 at 08:20:18AM -0600, Rick Romero wrote:
 

rsync: fork failed in do_recv: Cannot allocate memory (12)



This error is happening on the receiving side, and you seem to have only
mentioned the OS and memory for the sending system (I assume -- you
didn't explicitly say).  Is the receiving system also running cygwin?
What is its version rsync?

..wayne..
  
Ahhh  The receiving side is a fresh install of Debian, kernel 2.6.8-2 
with a whopping 256MB of Ram.
I have 2Mb 'free', no swap (What the heck did I do there?  Watch my 
confidence start droping drastically :P  ) and 5 rsync processes 
eating about 35Mb each..

The receiving system is running rsync 2.6.4 protocol v29.

Ok, so I'll throw another 256Mb in there asap - I still don't know why 
just changing the sending side's version of rsync would cause the 
receiving side to run out of memory..


Adding more memory to the receiving side seems to have solved that 
issue.  Now if I could only go back a day and find my own thread in the 
archives.. no wait, that wouldn't work.. damnit


Thanks :)

Rick


--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync / Cygwin : Cannot Allocate Memory

2006-03-24 Thread Rick Romero

Wayne Davison wrote:

On Fri, Mar 24, 2006 at 08:20:18AM -0600, Rick Romero wrote:
  

rsync: fork failed in do_recv: Cannot allocate memory (12)



This error is happening on the receiving side, and you seem to have only
mentioned the OS and memory for the sending system (I assume -- you
didn't explicitly say).  Is the receiving system also running cygwin?
What is its version rsync?

..wayne..
  
Ahhh  The receiving side is a fresh install of Debian, kernel 2.6.8-2 
with a whopping 256MB of Ram.
I have 2Mb 'free', no swap (What the heck did I do there?  Watch my 
confidence start droping drastically :P  ) and 5 rsync processes eating 
about 35Mb each.. 


The receiving system is running rsync 2.6.4 protocol v29.

Ok, so I'll throw another 256Mb in there asap - I still don't know why 
just changing the sending side's version of rsync would cause the 
receiving side to run out of memory..


Thanks

Rick
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync / Cygwin : Cannot Allocate Memory

2006-03-24 Thread Rick Romero

Hi,

I'm running the latest cygwin, with rsync 2.6.6 protocol 26.

My command is:
c:\cygwin\bin\rsync -vrtz --delete /cygdrive/e [EMAIL PROTECTED]  etc 

I get the following error when trying to rsync 500,000 files:

rsync: fork failed in do_recv: Cannot allocate memory (12)
rsync error: error in IPC code (code 14) at main.c(550)
rsync: connection unexpectedly closed (4 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12)
at /home/lapo/packaging/tmp/rsync-2.6.6/io.c(434)

Of course, this doesn't happen with a smaller fileset.  I'd prefer to
not have to break up the transfer, as the programmers tend to just
create directories wherever they please and don't tell me when they do,
then complain that their stuff isn't backed up (been there).

But I'm kinda lost - I found a post that says each file uses 100 bytes,
the reference poster was trying to archive 5,000,000 files - which is
far more than I am.  According to that post, my memory requirements
would only be 50,000,000 bytes.  50MB.  Even if that doubled since the
post, it'd still only be 100MB.

The odd thing is, It WAS working with rsync 2.5.1-dev (from an
rsync_minimal archive I found on the web) - except that one was crashing
on a 2GB file (damn outlook pst files), but I was getting past the
filelist part.

I tried upping the memory for cygwin, because the new version has a
limit of 384MB, and I thought MAYBE the dll I grabbed had no limit - but
upping to 1024MB didn't work.   

This is on a Win2k box.

Any suggestions?

Thanks

Rick


-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html