I'm triing since few days to do this. So sorry if my question looks stupide, but i've tried.
I have to get picture from a folder (who is updated automaticly and with subfolder) with theirs extensions (i'm ok on that) and this files have to me copied in a folder where a website base on php will edit them (rename and creating of and xml file).
The problem is because of the rename function of the script when I do again the copy, it put it back and the script rename it... I've tried rsync with --backup with a folder --backup-dir define, but it's still doesn't work, it's still sending file in backup folder desite their presence in the incremental folder.
Here is my code. You can laugh on them, i'm not a pro shell script coder.
When I lauch just the find and rsync functions, it doesn't put all my files in the incremental folders (and the extensions). I have to run the functions twice to get all files in incremental folder. This the command.
Thank in advance for your help.
PS; A little more thing, would be to replace '.' with a 'space' just after the *.jpeg copy. My php script have some problem to define file with with comma because of the extension. I'm finking about a command with 'find' like I like just below with a 'sed' function? It's good?
---------- Post updated at 01:41 PM ---------- Previous update was at 01:02 PM ----------
I miss something, I have to grab image from all folder and sub folder to one folders. I tried your script and it keep the directory.
I get also this for xargs
---------- Post updated at 01:41 PM ---------- Previous update was at 01:02 PM ----------
I miss something, I have to grab image from all folder and sub folder to one folders. I tried your script and it keep the directory.
I get also this for xargs
Thanks for your answer. I just try it. The files are copy but nothing go in 'incremental' folder, so when I edit the name of my copied files and do again the command the files with name's changed are copied again.
It's strange because rsync doesn't do what I want. No suffix and no backup-dir...
Thanks for your answer. I just try it. The files are copy but nothing go in 'incremental' folder, so when I edit the name of my copied files and do again the command the files with name's changed are copied again.
It's strange because rsync doesn't do what I want. No suffix and no backup-dir...
* if your files are not modified rsync does not do anything.therefore incremental folder is empty.
* if you change your file's names then rsync behaves on these such as new files and copy t target folder.
* if your files are not modified rsync does not do anything.therefore incremental folder is empty.
* if you change your file's names then rsync behaves on these such as new files and copy t target folder.
Hello All,
I am looking at a fast way to script some backups. I am looking at using rsync to do the leg work. I am having a hard time conceiving a script though.
I have a tree with subfolders within subfolders. I was looking at the /xd option to parse the tree.
Directory of k:\
... (4 Replies)
Hello,
I have a list of working directory in a remote computer acesssible through ssh and the same directory structure in my home directory of my laptop. I sometimes work on both my laptop and my this other computer.
I usually use Rsync this way to synchronize files
rsync... (5 Replies)
Hi Everyone,
we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment?
Thanks in adv. (0 Replies)
I'm using this script to backup an external hdd to another external hdd -
rsync -aE --delete --exclude Volumes/Disk\ A/.Trashes "/Volumes/Disk A" "/Volumes/Disk A Backup"The source drive being "Disk A", and the drive I wish to backup to being "Disk A Backup".
I'm constantly getting this error,... (4 Replies)
How do i use Rsync yo pickup only new or modified files from source?
I am using rsync -ravzpotu --delete-excluded but sometimes it goes thru all files again (5 Replies)
hello,
i need to modified my synch/back scripts....
i want that this script only syncro folders in destinationfolder.
f.e. when in destination are two folders
1) admin
2) users
but in SOURCE are three:
1) admin
2) users
3) antivirus
the script should only increnmential sync the... (0 Replies)
I want to take daily backup(11pm) of /var/www to /mnt/bak excluding /var/www/videos and /var/www/old. HOW to implement a rotating snapshot method, so that i can have multiple(say 4) automatically rotating backups. (0 Replies)
I have written a shell script to perform backups using tar, rsync and optionally utilise lvm snapshots. The script is not finished but is in a working state and comments/descriptions are poor.
I would greatly appreciate any criticism and suggestions of the script to help improve my own learning... (0 Replies)
Hi
Im trying to syncronise 4 webserver mirrors, using the rsync command. /www/html is the html documents directory.
i am using
export RSYNC_RSH="/usr/local/bin/ssh -l $REMOTE_USER"
rsyn -va /www/html remotehost:/www/html
when this is run, it copies the html file over to the remote... (3 Replies)