Re: Killed /home installing Fedora 7 with Ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dotan Cohen wrote:

That was a scary lesson that I learned tonight. I'm burning a backup
now, and I'll be learning rsync tonight...

This is an rsync command that my wife and I both use on our laptops
everytime we get home to our local network.

/usr/bin/rsync -e ssh -avzp --exclude "/home/eagle1/.ssh" --delete
/home/eagle1 / /ns2.local.net:/prtdata/
I would suggest using the -n option to rsync to test things before you
run it on a live filesystem. Leaving a / off of the end of a path in rsync
can be disasterous. It has saved my life many times.


I'll keep that in mind. Thanks.

Whenever possible, I like to cd into the source directory and
rsync -essh -av . remote_host:/path/to/target
so I don't have to remember which way the magic trailing / works. And if there is any chance of hitting mount points I use --one-file-system and repeat separately with any I wanted to include.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux