Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

gzip gives error when used over NFS

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Brent Dax
n00b
n00b
Posts: 2
Joined: Mon Nov 01, 2004 8:12 am
Contact:
Contact Brent Dax
Website

gzip gives error when used over NFS

  • Quote

Post by Brent Dax » Mon Oct 24, 2005 11:23 pm

I have a fairly simple backup script on my Gentoo server which runs as root. In summary, it dumps my MySQL databases and Subversion repositories to files, then writes a tarball of the entire file system to my (Ubuntu) desktop over NFS. It hasn't been working for a while, though, and I finally got around to debugging it today.

From what I can see, the problem is specifically with gzip: it refuses to operate over NFS. Writing a tarball of a small directory to the NFS mount works fine without the 'z' option, but fails with it; gzipping a file on the NFS mount also fails. The error message the test file gives is "gzip: /mnt/backup/test.gz: operation not permitted"; tar formats its message a little differently, as "tar: /mnt/backup/test.tar.gz: Cannot open: operation not permitted".

Once again, I can perform other read and write operations on the NFS mount; only gzipping seems to fail.

Thanks for any assistance you can provide.
Brent 'Dax' Royal-Gordon
Perl and Parrot hacker
Top
dfelicia
Apprentice
Apprentice
User avatar
Posts: 281
Joined: Wed May 11, 2005 5:57 pm
Location: Southwestern Connecticut

  • Quote

Post by dfelicia » Tue Oct 25, 2005 3:58 am

Is date/time in sync on client and server? NFS is very particular about time...

Have you considered scrapping NFS as your solution, and streaing the tarball over ssh, instead? Better yet, how about rsync to do incremental backups, rather than tarball your whole system every time?

Not an answer to your post, I know, but some viable alternatives to NFS.
Top
Brent Dax
n00b
n00b
Posts: 2
Joined: Mon Nov 01, 2004 8:12 am
Contact:
Contact Brent Dax
Website

  • Quote

Post by Brent Dax » Tue Oct 25, 2005 5:08 am

dfelicia wrote:Is date/time in sync on client and server? NFS is very particular about time...
It looks that way, although they might be a second or two apart. Both are talking to network time servers.
Have you considered scrapping NFS as your solution, and streaing the tarball over ssh, instead?
I tried that yesterday and it seemed to have its own issues (the backups didn't seem to finish), although I was in a hurry at the time and didn't really set things up the way I would if I seriously pursued this option (e.g. with SSH keys for access).
Better yet, how about rsync to do incremental backups, rather than tarball your whole system every time?
I actually have far less space on the partition I'm backing up to than I do on the server, so everything must be compressed before it's put on that partition. I don't think that rsync can handle that, although I could be wrong.
Not an answer to your post, I know, but some viable alternatives to NFS.
I really don't like NFS much, so I'm certainly open to alternatives.
Brent 'Dax' Royal-Gordon
Perl and Parrot hacker
Top
dfelicia
Apprentice
Apprentice
User avatar
Posts: 281
Joined: Wed May 11, 2005 5:57 pm
Location: Southwestern Connecticut

  • Quote

Post by dfelicia » Tue Oct 25, 2005 12:37 pm

So if you're not married to NFS, try ssh, again. Something like:

Code: Select all

tar jcfp - <dir> | ssh <user>@<host> '(cd <destination dir> ; cat > backup_`date '+%m_%d_%Y'`.tar.bz2)'
You can use public key authentication to avoid being prompted for a password (or try keychain).
Top
Post Reply

4 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic