Charles Marcus | 15 Mar 2013 13:01

Sample cron job that emails the results?

Would someone please be so kind as to send me a working cron job file 
that emails the final results (same thing that is output to terminal 
when job is executed via command-line?

Thanks,

--

-- 

Best regards,

Charles

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
Kyle Law | 6 Mar 2013 21:53
Picon

Stale NFS Handle with UNFS

I am having a issue using rsnapshot to backup of a LVM that is running some openvz containers  to a UNFS mount it fails to sync some files.  

When it hits symbolic links it returns the following:

rsync: failed to set times on <File location>: Stale NFS file handle (116)

Is there a problem with UNFS and symbolic links on using lchown? 
The issue does not happen on a local drive. 
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
LuKreme | 6 Mar 2013 18:54
Favicon

error in rsnapshot diff

# rsnapshot diff hourly.0 hourly.3
Comparing hourly.3 to hourly.0
Use of uninitialized value in numeric eq (==) at /opt/local/bin/rsnapshot-diff line 221.
Can't compare across devices.
(looking at hourly.3/www/usr/local/www/*munged*/wordpress/wp-content/cache/supercache/*munged*/category/no-link/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ci
 frame%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=/%3Ciframe%20width=)
Error while calling rsnapshot-diff

# rsnapshot --version
rsnapshot 1.3.1

# port search rsnapshot
rsnapshot  <at> 1.3.1 (sysutils, net)
    filesystem snapshot utility based on rsync

--

-- 
The voice of the majority is no proof of justice.

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
cat | 3 Mar 2013 21:05

which version: OS X?

Hello;

I'm new to both rsync and rsnapshot. Just did what I believe was a successful rsync; now ready to move to
rsnapshot, but not clear to me which version is right for OS X 10.8.2 (Mountain Lion).

can anyone tell me?

thank you!

cat
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Justin Los | 28 Feb 2013 22:45
Favicon

Re: Rsnapshot rsync/cp-al/ Problems

Due to the help of many of the people on the mailing list (Nico, Ruediger, Ken, Paul…thanks again), I was
able to track down the problem

Due to the fact that this was an NFSv4 mount, there were a couple mapping issues to be sorted out.  However, it
wasn't the 'nobody/nobody' problem that's common, but rather a domain mapping issue.

We were backing up from a <domain.net> to a <lab.domain.net> and the idmapd.conf file couldn't map this
automatically.  Essentially, all that was needed was to qualify the domain and everything worked.

In order to help anyone else out that runs into this problem, make sure that the setting 'Domain = ' is
statically defined and it should be fine. 

Thanks again!

-Justin
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Nico Kadel-Garcia | 28 Feb 2013 00:23
Picon

Re: Rsnapshot rsync/cp-al/ Problems

On Wed, Feb 27, 2013 at 5:57 PM, Justin Los <los <at> averesystems.com> wrote:
> Hi Nico,
>
> To be honest, I'm not the guy who put it together.  Previously and before we saw the errors, we weren't
mounting the exported directory, but rather just connecting to it by using snapshot_root
/net/≤address>/<filesystem>/<directory>.  This is actually the preferred way to do it…but the
errors are the same.  As for the NFS, it's not NFSv4, but rather appears to be 3.  I created the NFS mount to try
to get around the problem.  I've not seen any SELinux errors in any of the logs, but I could be looking in the
wrong place

Oh, the settings for automounting can get quite strange. But you've
changed the patch to the mountpoint, and not necessarily set SELinux
to allow the new path to work. Also, even if the NFS server is v3, if
you're using automounting, the default on CentOS 6 x changed from 5.x
They're now NFSv4 by default.

You can change this in your /etc/sysconfig/autofs, or in the
particular automount configuraiton. (Ran into this last year.) And
even more fun, if you've got jumbo frames set up and no one mentioned
it for the server, or inconsistently set with the client, you can get
even more fun. (Guess what I did last fall!)

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Justin Los | 27 Feb 2013 21:02
Favicon

Rsnapshot rsync/cp-al/ Problems

Hi All,

For the past month, we've been running into a real issue in moving backups from one server to another.  This is
specifically backing up mailman (which I know we're using for this mailing list) to an NFS server.

Previously we had NO problem with the backup process and from what I see, the config is EXACTLY the same as it
was before.  The difference being that we've moved from an OpenIndiana box to a CentOS 6 box.  The
interesting thing is that our mailman server is a CentOS 6 box and you'd think it'd be an easy transition.

However, upon running rsnapshot (manually OR via cron…either way), the backup runs into an error

rsync: chown "<path>" failed: Invalid argument (22)

Upon killing the process, I get this error:

ERROR: /usr/bin/rsync returned 20 while processing /var/lib/mailman
rsync: writefd_unbuffered failed to write 7 bytes to socket [generator]: Broken pipe (32)
rsync error: received SIGUSR1 (code 19) at io.c(1525) [generator=3.0.6]

Then, if I don't remove the files that were created but not finished, I get another error subsequently,
which stops ANY more updates from happening:

/bin/cp: failed to preserve ownership for `<path>': Invalid argument

Upon killing or finishing this process:

ERROR: /bin/cp -al <path> failed (result 256, exit status 1).  Perhaps your cp does not support -al options?
ERROR: Error! cp_al("<path>", "<path>")

Now, from the research that I've already done, I made sure that the directory was in the etc/exports and
exported to the correct ip with the options (rw,no_root_squash) and that it was mounted on the client
side.  I originally had rsnapshot just backing up to '/net/≤server>/' instead of mounting it…but
either way produces the same results.

What am I missing?  I really appreciate any help that's given as I'm totally baffled and have tried fussing
with this for hours.

Thanks all, I really appreciate ANY help.

-Justin Los
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
Bob Sauvage | 22 Feb 2013 18:15
Picon
Favicon

Monthly backups deleted

Hello *, 
 
My cron task was incorrectly configured for the monthly backups.  So, I've deleted all "monthly.x" backups. 
 
I suppose that all my backups are now inconsistent ? I have to restart from 0 ?
 
Thanks in advance,
 
Bob !
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Scott Hess | 18 Feb 2013 06:16

OSX Time Machine versus rsnapshot.

I've been using rsnapshot to back up my home network of mostly Linux
boxen for a bit over 8 years.  Nowadays, my family has been acquiring
more OSX machines, so I setup a Linux box to work as a Time Machine
target.  I used this as a resource:
  http://www.mikepalmer.net/build-a-netatalk-time-machine-for-osx-lion-using-debian-6-0-squeeze/
though there are other similar things out there.  Since all I really
knew about Time Machine was that people had described it as similar to
rsnapshot, so I had figured that it would be rsnapshot-like with the
source fs sync'ed to the remote mount, with hard links to share
unchanged files, etc.  My idea was that I could then use rsnapshot to
pull that onto the big backup server, and the hard links would let me
get away without paying a huge storage cost.  Unfortunately, what I've
found is that Time Machine backs up into a "sparsebundle", which is a
filesystem image in a collection of files.  So, like database storage,
rsnapshot really can't leverage this, and could potentially backup an
inconsistent state for it.

Did that make sense?  If so, has anyone noticed settings or the like
which would cause Time Machine to write files directly on the server
rather than filesystem-in-a-blob?

I'm reluctant to simply export a r/w filesystem from the backup server
for Time Machine to backup into - my entire goal with that server is
that it is pull-only, nothing is ever pushed to it.  So my notion
right now is that I could write a script to manually rsync the Time
Machine data over, perhaps retrying until no data is transferred, and
assume that that's "good enough".

Thanks,
scott

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
Freitag | 14 Feb 2013 21:35

Home backup (notebook) to a small NAS with rsnapshot

Hi,

I am thinking about buying a small NAS (qnap TS-219PII) in order to have a repository of media and also a level
of redundancy to my notebook.

I run Ubuntu and nowadays I run rsnapshot with an external hard drive on a weekly basis and I really like how
rsnapshot works
(although I am no expert on the fine tuning of Rsnapshot itself or Rsync). My notebook has very little
"change" from one week to the other,
so the snapshot takes less than 10 minutes on the (USB2) hard drive.

Now whith the NAS, I would like to run backups there:

- Backup of an Ubuntu notebook via Rsync to the NAS (either via Wireless 802.11n or Gigabit Ethernet)
- Backup of the NAS to an external Hard Drive (via USB3)

What should I consider here?
    1) Mounting the NAS via NFS and run the backup against this (does this even work?)
    2) Install Rsnapshot on the NAS itself and "pull" the data from my notebook (via NFS? Rsync?)
In case of 1, I think the setup would be easier, but what about performance?
In case of 2, I don't want to put a cron or something to run this, I want to have it run manually, but how should I
trigger this "run", since the NAS is going to start it? Via SSH?
    3) when connecting the external hard drive to the NAS ( I plan to do this every couple of months ), I would run
direct from the NAS a rsnapshot.
    In this case I think it will be very straightforward...

I don't care much about security, but if it would be relatively easy to also encrypt the
filesystem/directory on the NAS, it would be intersting.
The "what if the NAS is stolen" scenario.   
Encryption between the NAS and the notebook is useless for me now.

Any suggestions, places to start? I've been reading about it lately and without having the NAS on my hands
yet, I am not able to run tests or check for performance issues.

Thanks a lot for any answer/tips,
Eduardo

+----------------------------------------------------------------------
|This was sent by eduardofreitag <at> gmail.com via Backup Central.
|Forward SPAM to abuse <at> backupcentral.com.
+----------------------------------------------------------------------

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
Christoph.Meraner | 14 Feb 2013 09:49
Favicon

cp -al error - rsnapshot not working

Dear all,

 

I’m running rsnapshot as cron job. I’m backing up data from a linux cluster (Red Hat 4.1.2-52). It worked fine until all out of the sudden rsnapshot stopped working. According to the log file I have the following problem:

 

/usr/bin/rsnapshot -D hourly: ERROR: /bin/cp -al /backup/snapshots/hourly.0 /backup/snapshots/hourly.1 failed (result 256, exit status 1).  Perhaps your cp does not support -al options?

/usr/bin/rsnapshot -D hourly: ERROR: Error! cp_al("/backup/snapshots/hourly.0/", "/backup/snapshots/hourly.1/")

/usr/bin/logger -i -p user.err -t rsnapshot /usr/bin/rsnapshot -D hourly: ERROR: Error! cp_al("/backup/snapshots/hourly.0/", "/backup/snapshots/hourly.1/")

 

 

I tried to run rsnapshot from the console, but I get the same error message. Therefore I tested the cp –al command manually, it worked. So I can’t understand why I get the error message mentioned above. Can anyone advise me how to get rsnapshot working again? What can I check or what should I test?

 

Thanks a lot in advance,

 

Christoph

 

Med vennlig hilsen / Best regards,
for Det Norske Veritas AS
Christoph Meraner
_______________________________
Safety Risk Assessment, Høvik
Mobile: +47 4154 8419

Web: www.dnv.com

 


************************************************************************************** The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. If you have received this transmission in error, please immediately notify the sender by return e-mail and delete this message and its attachments. Any unauthorized use, copying or dissemination of this transmission is prohibited. Neither the confidentiality nor the integrity of this message can be vouched for following transmission on the Internet. **************************************************************************************
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Gmane