**SOLVED**Laptop/Desktop... Back up/Mirror script.
Hello all,
I have a script I am trying to put together, what I am trying to do is mirror my home dir (excluding my music dir) between my desktop and laptop. My intention is to create a cron job to run two scripts, one to push the data to the laptop at the end of the day, and one to pull the data from my laptop in the morning.
Here is what I have and it is not working correctly, it is not excluding my music dir. Also what is the option to include hidden files? Is it -r or -v?
Just to avoid misunderstanding...
is there an error message?
Remove the --ignore-errors to options to get meaningful response.
when You type <user> and <remotemachine>, You are actually using a real username and a real address instead, right?
Do You get a prompt asking for password?
The -a option stands for archive mode, which among other things, will include hidden files. -v stands for verbose and -z stands for compressed transfer, not really necessary on a LAN.
If You are using a reasonably recent rsync, it defaults to ssh, so You can probably leave that out as well.
Lakris: No error message: Yes I removed the real names to protect the guilty... :-)
I get the password prompt, it begins to sync, then I see the "Music" start moving and so I have to stop it then.
Thank you for your examples, although i will try the quotes as Shawn mentiones because "--exclude=/home/user/Music" is not being ignored.
Good! For multiple patterns You use another --exclude, as in
Btw, I just had to test it myself and it works using exclude pattern with / (slash) in it and without quotes. You need it when pattern for example contains spaces:
Hello all,
I am trying to spool a SQL query output file from back-end to desktop in a certain path but it didn't work,the query writes the output in a file in the same directory at the back-end.
note : i use the same query in sql developper and file was created in the desired path fine
code... (1 Reply)
Dear all,
I would like to transfer my old laptop documents/files etc to the new laptop without using any external hard disk.
Please let me know if its possible via any way.
Thank in advance,
emily (3 Replies)
Hello everybody,
I need to connect a laptop 2.5 SATA hard drive to a Desktop board (which uses 3.5' SATA hard drives). I've tried the connectors and they fit excellent in the 2.5 SATA connectors.
The problem is that the laptop hard drive uses 5v and the PC's power source sends 12v. So, my... (4 Replies)
Hi to all,
I have the problem that a laptops with windows XP cannot startup even in safe mode nor using last good known configuration. I have a Ubuntu 10.10 Live CD and booting from it I can read the Hard Drive.
I need to do a backup the Hard Drive from XP laptop and I want to connect this... (5 Replies)
Hi ,
I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through
metainit d51 1 1 c0t0d0s2
metainit d52 1 1 c1t0d0s2
In the next step
metainit d50 -m d51
d50: Mirror is setup
next step is
metaattach d50 d52
d50 : submirror d52 is... (7 Replies)
I've looked a little but haven't found a solid answer, assuming there is one.
What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
I have a Debian-derived distro (Kubuntu 8.04) running on a Dell Inspiron laptop. This laptop often wakes from RAM suspension while in my bag. I would like to run a script, upon RAM suspension wake, that would detect if the lid switch is closed. If so, then the script should put the machine back in... (0 Replies)
Hi all,
I would like to backup the entire unix.com website in my system is it possible ?? i have hered about wget and curl will it possible to back up using wget ??
I have cygwin in window machine which have wget support .
I don't know the syntax of doing the job.
I am under a proxy... (2 Replies)