rigadicomando.org

Whatever you can cat

Random Quote

Being and non-being produce each other.
Difficult and easy complement each other.
Long and short define each other.
High and low oppose each other.
Fore and aft follow each other.

• Lao Tzu

Secondary links

  • About
  • Contacts
  • Disclaimer

Home Blogs admin's blog

Quick System Backup via Netcat

Submitted by admin on Tue, 2008-09-23 15:18.
  • bash
  • scripts

Sometimes a backup is needed but the server storage is not enough, in this case you must backup your data on the fly via the net, without the facility of storing locally and then transfer the data.

There are many methods to backup your data on the fly, using rsync via ssh is one for example, but this post is about using netcat for a quick solution.

Listening side, where the backup data will be stored, or destination:

~# mkdir /whatever_the_name_of_your_backup_dir
~# cd !$
~# netcat -l -p 12345 | pv | tar xjf -

Sending side, where the original data are, or source:

~# cd /
~# tar cjf - --ignore-failed-read bin boot cdrom dev/ etc/ home/ initrd* lib/ root/ sbin/ usr/ var/ vmlinuz*  | pv | netcat -q 2 <YOUR_DESTINATION_IP> 12345

Don't forget to create: /bin /media /mnt /opt /proc /selinux /srv /sys /tmp
and chmod 1777 /tmp
(This FHS is for a Debian Etch, please take care of different directories in your setup)

  • admin's blog
  • Login to post comments

tags in Arguments

administrivia bash Debian GNU/Linux OS emacs howto perl scripts web
more tags

Navigation

  • Feedback
  • News aggregator

ICT users' rights

  • Free Software Foundation Files Suit Against Cisco For GPL Violations
  • Support freedom by joining the FSF during our year-end fundraiser
  • Bilski ruling: a victory on the path to ending software patents
  • FSF Releases New Version of GNU Free Documentation License
  • FSF reboots its High Priority list with a grant and call for input
more

High Scalability Architecture

  • Messaging is not just for investment banks
  • Lessons Learned at 208K: Towards Debugging Millions of Cores
  • Alternative Memcache Usage: A Highly Scalable, Highly Available, In-Memory Shard Index
  • Paper: MapReduce: Simplified Data Processing on Large Clusters
  • Strategy: Understanding Your Data Leads to the Best Scalability Solutions
more

Debian Security

  • DSA-1695 ruby1.8, ruby1.9
  • DSA-1694 xterm
  • DSA-1693 phppgadmin
  • DSA-1692 php-xajax
  • DSA-1691 moodle
more

Drupal Security

  • SA-2008-075 - Views - SQL Injection
  • SA-2008-074 - Services - Insecure signing
  • SA-2008-073 - Drupal core - Multiple vulnerabilities
  • SA-2008-072 - Storm Project - SQL injection
  • SA-2008-071 - User Karma - Multiple vulnerabilities
more

EFF

  • FBI Withdraws Unconstitutional National Security Letter After ACLU and EFF Challenge
  • EFF and Sheppard Mullin Defend Wikipedia in Defamation Case
  • Congress Must Investigate Electronic Searches at U.S. Borders
  • Betrayed MSN Music Customers Deserve More from Microsoft
  • EFF Report: FBI Slowed Terror Investigation with Improper NSL Request
more

Invent Geek

  • the ion cooler 2.0
  • the ultimate dance pad v1.0
  • thermaltake sponsors inventgeek
  • The Thermaltake MiniFridge Case Mod
  • Inventgeek gets a facelift and a butt tuck
more

 Privacy | Disclaimer | Drupal | Creative Commons

All content on this site is ditributed under Creative Commons License, each individual author is responsible for its own posts.

RoopleTheme