07-05-2017
Rsync - delete extra files in Destination without synchronising directories
I have a script that synchronises a directory to a DR server, but to improve the time, I actually use rsync to transfer files *[123] in one batch and also
*[456] in another batch - both batches run from the same script and run in the background.
My problem is that there isn't much space on the Destination, so I would like to start by deleting any files on there that don't exist on the Source.
Is there any way to delete files on the Destination that don't exist on the Source only i.e. without synchronising the files?
Thanks in advance
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello friends,
I am compiling some set of SQL scripts in a set of sub directories demoed as below. After compiling log files are being created.
Each and every time after compiling time I had to go subdir by subdir to delete the log files. I am sure there should be simple way to look for all log... (4 Replies)
Discussion started by: adurga
4 Replies
2. UNIX for Advanced & Expert Users
Dear Folks,
I have to backup pgsql database dump everynight on a routine. The database dump actually contains sql(text) statements. The actual size of the database dump is aroung 800 MB. Between two days backup, only few lines of statements are modified/added/deleted.
I dont want to do... (1 Reply)
Discussion started by: rssrik
1 Replies
3. Shell Programming and Scripting
Hi everyone, and thanks to all for your assistance.
I have a problem with the rsync command. I want to make a backup of a "source" directory in a "destination" directory.
I want to specify:
"absolute path of destination" (identified by a ~): ~/Destination
or a "relative path of... (0 Replies)
Discussion started by: PaganoM
0 Replies
4. Shell Programming and Scripting
Hi,
I need to use rsync to delete multiple files(only specified files not all) using --delete option, these files are located in different target folders.
Instead of running rsync command multiple times for each file, can we achieve this with one time execution?
your help is much... (0 Replies)
Discussion started by: MVEERA
0 Replies
5. Shell Programming and Scripting
I've got a rsync script that backups file from disk1 to disk3. This works great however if there are extra files on disk3 they do not get deleted by the sync.
I'm syncing all folders from F-J
rsync --progress -v --delete --delete-excluded -av --recursive /home/disk1/Files/*... (0 Replies)
Discussion started by: gmccarthy
0 Replies
6. Shell Programming and Scripting
Hello all,
I have a problem with rsync command.
From a backup server, I use a command like the one below:
rsync -av --delete user@host:/home/user/ /home/backup_user/daily_rotating_backup/
In some folders of the user there are some files on which he has removed his write permission on... (3 Replies)
Discussion started by: freddie50
3 Replies
7. UNIX for Advanced & Expert Users
hi All,
i have 2 server setup now for Rsync, i configured Rsync on both of the server and it worked well when i did run from source to destination. and while running back from destination to source it produced this error:
bash-3.2$ ksh rsync_bravo_db.ksh usa0300uz1247.apps.mc.xerox.com... (0 Replies)
Discussion started by: lovelysethii
0 Replies
8. UNIX for Dummies Questions & Answers
Hello,
I have some files in a local directory and perform an rsync command with the files in a remote directory, Now when I checked the files in the local and the remote directory, I found some strange filetypes such as this: .nfs0000000001d0c8e000002ff2 , .fuse_hidden000014da00000001 etc etc,... (3 Replies)
Discussion started by: ajayram
3 Replies
9. Shell Programming and Scripting
OS: SUNOS 5.10 i386
Hello guys I wrote a shell script in bash shell to delete the files less than 30 days old. The following is the script.
=======================================
#!/bin/bash
for dirs in `/clu04/oracle/directory_list.lst`
do
find $dirs -type f -mtime -30 -exec rm {} \;... (3 Replies)
Discussion started by: zacsparrow
3 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
I want delete all files from destination folder. I am trying below commands
rsync -avFF --delete-after /home/vizion/source/ /home/vizion/destination/
I need to be delete all file/fodders from destination
Any body have idea ? Please correct me. (3 Replies)
Discussion started by: Chenchireddy
3 Replies
LEARN ABOUT DEBIAN
scvim_make_help
SCVIM(1) General Commands Manual SCVIM(1)
NAME
scvim_make_help - strip SuperCollider HTML help to text, for use with scvim
SYNOPSIS
scvim_make_help [options]
DESCRIPTION
This manual page documents briefly the scvim_make_help command.
scvim_make_help is a script that strips SuperCollider HTML help to text format, for use with scvim. Users do NOT normally need to invoke
it, since it is called by the main scvim script upon first run. The stripped files are placed in ~/.scvim by default, but this can be
overridden by specifying SCVIM_CACHE_DIR environment variable.
OPTIONS
A summary of options is included below.
-s --source-dir directory
Specify the soruce directory to search for HTML help files.
-d --dest-dir directory
The Destination Directory for the processed Help Files.
-c --clean
Clean the Destination Directory before building the helpfiles.
-f --force
Do not prompt to see if the user is sure about deleting files.
-h --help
Show summary of options.
SEE ALSO
scvim(1)
/usr/share/doc/supercollider-vim/README.scvim
AUTHOR
scvim was written by Alex Norman <alex at x37v dot info>.
This manual page was written by Dan Stowell <danstowell@users.sourceforge.net>, for the Ubuntu project (but may be used by others).
Nov 18, 2008 SCVIM(1)