Ubuntu :: Rsync Delete With Confirmation?

Feb 22, 2011

I want to synchronize sets of files (e.g. from or to flash memory). rsync is powerful, but --delete option is dangerous. Anyone know whether there's a way to do --delete interactively, i.e. get rsync or some near equivalent to ask (y/n, in a console window) before deleting?

View 9 Replies


Ubuntu :: Can't Rsync Gmail / Run Rsync --recursive --times --perms --links --delete?

Jan 7, 2011

When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/

where Documents/exclude.txt is

- /Downloads/
- /Desktop/books/

the files in those directories are still copied onto my USB.


I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.

View 9 Replies View Related

Ubuntu :: Rsync --delete Doesn't Delete Superflous Files

Sep 25, 2010

I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:


rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@

The problem is it does not delete files that has been removed from my local system?
I run the command as root on the local system.

(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)

View 2 Replies View Related

Ubuntu :: Rsync Deletes Files It Should Not Delete

May 4, 2011

I built a script that downloads my podcasts using Gpodder into the directory /HOME/SHARED/PODCASTS/ (with a subdirectory for each podcast)The script then selects the latest episode and copies it over to a target directory (it empies the target directory first and copies over everything) I want to use RSYNC to make sure the 'not so fresh' episodes get deleted and the "fresh" episodes get copied over. Then dropbox can sync the "new" files over to the cloud where i can access them via my ipad/iphone (whole other story).The thing is : i've replaced the cp command with the RSYNC command and now the script is acting strangely.

It selects and sync's over the "newest" podcasts to the destination directory. Then it suddenly DELETES all the episodes in the destination directory and copies over the three last files.

View 8 Replies View Related

Software :: Rsync Delete Not Working

Apr 6, 2011

I would like to use rsync to keep the hard drive in my media server synced with my video collection on my linux server. The media server I believe is running some version of linux running samba. I mount the media servers share to a folder on my linux server & use the following command: rsync -a -vv --delete /home/shared/Videos/* /mnt/WDLive/Shearer Files/Movies/

However, it does not delete files on the media server that I delete on the source. I also created a new folder on the source & moved some of the files into it. When I ran rsync again, it created the new folder on the media server, but it recopied all the files from the source again, instead of moving the files which were already on the media server into the new folder, so no I have 2 copies.

View 2 Replies View Related

Ubuntu :: Sync Script - Delete Option In Rsync?

Jul 18, 2010

wrote a script to sync my netbook music with my server music and everything was fine.but if for some reason lets say i run it accidently and i'm not connected to my network, i just wiped my netbook music .here's what i got so far:

Sudo mkdir /media/ServerMusic/
mount -t cifs -o user=Justin,password=****** // /media/ServerMusic/[code]....

i need to have the --delete option in rsync (say i sync it and realize i hate some music, when i delete it from the server i don't want it still on the netbook.i want an if statement in here somehow, but i'm not sure how to do it.something like, the first command in the script should be a ping test, if ping doesn't work end the script, if ping does work continue or if the server music gets mounted to the created directory continue, if the mount failed, or even in the mounted folder is empty stop the script

what can i do here to ensure i can keep the --delete and not have to worry about losing my music if the mount fails?

View 9 Replies View Related

General :: Exclude Rsync Excludes From Delete?

Jul 9, 2010

im using rsync to sync files across multiple machines.

using the following:

rsync -az -e "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
--delete --delete-excluded --force --exclude=.git --exclude=.bundle
--exclude=tmp --exclude=log/* --exclude=*.log --exclude=*.pid
user@host:/path/to/src/ /var/build/dest

I want to exclude all log files from being transferred from the src to dest and delete all existing ones on the destination so im using --exclude=*.log with --delete-excluded which works great ...

but i want to keep a certain log file intact on the destination. I want a --exclude-from-delete option

Is this possible with rsync?

View 1 Replies View Related

Server :: RSync Without Delete Any File On The Destination?

Feb 16, 2010

I'm using rsync for a backup-sript at the moment and want to keep all files. The files are always unique, so I want to rsync without delete any file on the destination.

I've tried with --no-delete and --max-delete=0 but nothing seens to work. Is there even a possibility to do so?

View 2 Replies View Related

OpenSUSE :: Way To Get Rsync To Delete Files If They Were Deleting At Source?

Jun 11, 2011

I have 2 folders that are synced using rsync. Right now if I delete a file in the source folder, the destination folder still retains that file. Is there a way to get rsync to delete files if they were deleting at the source?I could not find anything in the man page.not sure if I'm missing something or if that feature just doesn't exist.

View 4 Replies View Related

General :: Rsync - Cygwin On XP - Delete Flag Not Working

Aug 4, 2009

I installed cygwin with rsync on a Win XP Machine. My goal is to backup a folder from one hard drive to another (both on XP machine).

I run the following command from a batch file:

Works fine except the --delete flag is not working. Copies everything in source to destination, but doesn't delete some extra files that are present on the destination, but aren't on the source, which it's supposed to. I looked at the rsync man page, and I'm doing everything right... such as not using wildcard.

The same command works perfect on another computer (XP machine; source and dest both on XP machine).

View 1 Replies View Related

Programming :: Rsync In A Backup Script Doesn't Delete-after

Oct 6, 2010

That is the whole script:

#!/usr/bin/env bash
# backup device for me, m.tornow, probably:
# /dev/sde1


and BU_MOUNTPOINT being the mount-point where a device is being mounted (duh).

View 6 Replies View Related

Ubuntu Servers :: Advanced Rsync - Make The Rsync Set Or Keep The User And Group Affiliations?

Nov 17, 2010

Thought I'd post it here because it's more server related than desktop... I have a script that does:


This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?

View 6 Replies View Related

Server :: Rsync Execution - With Crontab - Have Given Full Path To Rsync Too

Apr 12, 2011

I have a tiny shell script to rsync files between two servers and remove the source files.

This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.

But the same script doesn't work, when I try to automate it through crontab.

I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.

As I mentioned earlier, manual execution works like charm!

When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.

View 6 Replies View Related

Software :: Run Rsync To Download Files From A Server Without Rsync Daemon?

Sep 18, 2009

I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.

I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?

The command I used is rsync --partial --progress -r source destination

View 1 Replies View Related

Ubuntu :: 10.04 Shutdown Confirmation Feature-bug

May 4, 2010

When shutting down 10.04 you are forced to deal with a confirmation window. In previous releases it was possible to switch this off, e.g. right click shutdown button or using gconf-editor. I can't remove this feature bug in 10.04.

View 7 Replies View Related

Ubuntu :: Why Does 'shut Down' Now Require Confirmation?

May 29, 2010

Since I upgraded to 10.04 Lucid the Shut Down applet puts up a window titled "Shut Down" that has two buttons "Cancel" and "Shut Down". In 9.04 this confirmation window didn't appear. How can I make "Shut Down" skip the confirmation and shut down directly? I've looked around for a preference item about that a couple of times but didn't find it.

View 3 Replies View Related

Ubuntu :: Aptitude Install Does Not Ask For Confirmation

Jun 22, 2010

After executing:
$sudo aptitude install package_name
I am no longer asked for a confirmation before downloading and installing the pkg.

View 5 Replies View Related

Ubuntu :: 10.10 Enable Shutdown Without Confirmation?

Dec 28, 2010

I keep seeing stuff that says "right-click on the shutdown icon, select Properties" and so on.Well, I've just upgraded (should I say "upgraded"? It was a fresh reinstall really, not an Upgrade through the Update Manager) to 10.10, and right-clicking on the shutdown icon does not produce a "Properties" option.I get About, Remove From Panel, and Lock To Panel... none of which are helpful.So, it's been asked before and I'm gonna ask it again: How do I remove the annoying confirmation when I want to shut down Ubuntu?

View 4 Replies View Related

Server :: Rsync Can Not Rsync Files With Include Filter

Jul 21, 2010

use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.

rsync configure file,below...

View 2 Replies View Related

Ubuntu :: Auto Install Script No Need For Confirmation

Apr 13, 2010

I just reinstalled Ubuntu, but before that I made a list of all the programs that needed to reinstall too. the thing is that it keeps asking me for confirmation before installing every app, and I want it not to... so I can get some sleep while it sets up everything.How do I do this? maybe using the "yes" command, but how?

View 7 Replies View Related

General :: Apt-get Install Does Not Ask For Confirmation

Jan 30, 2011

In my latest Debian I noticed that apt-get install does not, as I expected, stop to ask for confirmation before starting the actual download/install process.it directly carries on with the operation, which is obviously very annoying when, as I usually do, you first want to see what packages are needed (and how heavy the download) and then you want to decide whether to proceed or not.The man pages, as I correctly remembered, talk about a -y option intended to bypass confirmation requests, which means that the default behaviour should be the opposite.I tried also on a Ubuntu 10.10 with the same result.

View 8 Replies View Related

General :: Logging Out Without Confirmation

Mar 6, 2010

I notice that one of the functions I can make a keyboard shortcut for in KDE is Log Out Without Confirmation. This might show a lack of imagination, but when might I want to do that?

View 3 Replies View Related

Server :: DNS Move Looking For Confirmation

Aug 18, 2010

I have a DNS server at an old companies place and that box will be losing it's IP. The whois record for the domain goes to godaddy which has 2 'A' records;
ns2.domain.com which point to the current 2 DNS servers. Now if I have a new server up and running and the zones copied over, do I just need to change the 'A' location for ns.domain.com to this new IP? I remember back in the day you had to 'register' the nameserver with the registrar, etc.I haven't touched this stuff in a while, and before I go and change the IP of the nameserver, want to make sure all is in check.

View 2 Replies View Related

Server :: Rsync Fails In Cron - Ssh Key - For Rsync?

Dec 8, 2010

I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.

I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.


Here is the rsync command embedding in the .sh script.


Here is the cron entry:


View 6 Replies View Related

Ubuntu :: Get Rid Of The Confirmation Message To Open Text Files?

Apr 16, 2010

How do I get rid of this kind of annoying (silly) confirmation messages :


Do you want to run "footer.php", or display its contents? "footer.php" is an executable text file.and then you have these buttons to choose from :


Run in Terminal | Display | Cancel | Run

I've been clicking on Display for many many times

View 6 Replies View Related

SUSE :: Get The Confirmation Box When Press The Shutdown?

Jan 24, 2010

Is it posible to not get the confirmation box when i press the shutdown or log off button. Suse 11.2 with kde

View 1 Replies View Related

General :: Crontab Script Confirmation

Nov 22, 2010

I have a quick question involving crontab and a script I want to run with it. The script generates and sends an email to group members who are on-call for a given day, but when you run it this appears'Run This Script?' The script will run when you enter 'y' or 'yes' and then press enter.

I'm trying to give that input via another script which runs the first one and then waits for the prompt to input a 'y'.How can I make a script which waits for a prompt and then gives it input?

View 4 Replies View Related

Ubuntu :: Sudo - Disable Confirmation And Simply Execute Command

Aug 5, 2010

In Ubuntu, When I type sudo and hit enter, the new command will appear on the command line, instead of simply executing. This is different from other operating systems I've used, such as older ubuntu's, mac osx and debian. Is there a way of disabling this confirmation and having it simply execute the command?

View 3 Replies View Related

Ubuntu :: Make Shred Command Display Confirmation Before Shredding?

Feb 5, 2011

I use nautilus-action to create a right-click shred command with these parameters.: -f -u -v -z %M

I thought the -v would give me some feedback as well as an "are you sure" dialog before deleting. But when I run Shred it just deletes the file without any feedback and no confirmation beforehand.

How can I get a confirmation prompt to occur before shredding occurs (to prevent me from accidentaly shredding something--sometimes I click the wrong item cause the mouse shifts last second).

Any why don't any icons ever appear on my context menu even though I'm assigning icons?

View 9 Replies View Related

Slackware :: 13.0 / 13.1 NTPD Differences (Synchronization Confirmation)

Jun 28, 2010

I'd like to get the 13.0 "synchronized to <time server>, stratum <stratum>" messages back on 13.1.

- On 13.0, running ntpd 4.2.4p8, reassuring messages appeared in /var/log/messages like "synchronized to, stratum 2".
- On 13.1, running ntpd 4.2.6p1, there are no messages in /var/log/messages to confirm that time is being synchronised.

rc.ntpd on both starts ntpd with the same options. /etc/ntp.conf is identical on both, a "get it working and then make it secure" version:
cat /etc/ntp.conf | grep -E -v '^$|^#' cat /etc/ntp.conf | grep -E -v '^$|^#'
server in.pool.ntp.org
server asia.pool.ntp.org
fudge stratum 10
driftfile /etc/ntp/drift

According to Linux Home Networking, synchronization can be checked using ntpq -p. This shows synchronization is working. I would prefer to see that confirmation in /var/log/messages without having to run a command manually to check it. How to get the old messages back?

View 14 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved