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:

Quote:

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

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


ADVERTISEMENT

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

Oct 6, 2010

That is the whole script:

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

[Code].....

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

View 6 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

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

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.

And...

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 :: Can Delete These 'un-delete-able' Files In Trash?

Nov 1, 2010

I just can't stand knowing that there's a slight problem with my PC.I have roughly 12.5 Gigs of files, mostly movies that are multiple clones of a particular movie (which was an entirely different problem altogether) and I CANNOT DELETE THESE THINGS! There has to be a simple way to do it from terminal, problem is, I can't seem to find the trash directory in terminal.

View 3 Replies View Related

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 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:

Code:
Sudo mkdir /media/ServerMusic/
mount -t cifs -o user=Justin,password=****** //192.168.1.108/Public-3/Music/ /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

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

Ubuntu :: Change Delete Button To Delete Instead Of Move To Trash

Apr 18, 2010

Instead of moving to trash, how can i make the delete button delete? Delete is already enabled on the right click menu.

View 7 Replies View Related

Ubuntu :: Folder Wont Delete \ Whenever Try To Press Delete Noting Happens?

May 9, 2010

SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.

View 4 Replies View Related

Ubuntu :: Delete File - No Right Click Delete Option?

Feb 18, 2010

Why is there no Delete when I right click like there is with Windows in ubuntu? Pretty much everything else is there like new folder and so on Is there some way to add it? Also why when i delete something does it not ask me if I am sure that i want to delete that file?

View 6 Replies View Related

Ubuntu :: Permissions For My Home Directory Were Accidentally Changed From 'access Files' To 'create And Delete Files?

Nov 25, 2010

the permissions for my home directory were accidentally changed from 'access files' to 'create and delete files', and I changed them back, but ever since then I am not able to change any preferences/settings at all. power management, themes, panels, emerald, anything. my user account is supposed to be the administrator, and all the user privliges are checked. how to get control of my computer back?

View 9 Replies View Related

Fedora :: Allow User To Save/edit/delete Documents In A Folder But Not Delete That Folder?

Sep 6, 2011

Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?

View 14 Replies View Related

Ubuntu :: Could Not Delete Files?

May 2, 2010

how delete files from /var/wwwwhen I try to delete file from system gives following messagesThere was an error deleting orderorderform.html.""Error removing file: Permission denied"

View 2 Replies View Related

General :: Wget / Delete Files / Getting Bunch Of Filefolders, But No Files, Ex."cccamp07-de-1845?

Oct 11, 2010

I am trying to dl the files located here: http://good.net/dl/bd/CCCamp-2007/video/m4v/ using wget.

Now when I use the command wget -r -A .m4v http://good.net/dl/bd/CCCamp-2007/video/m4v/

I get the just a bunch of filefolders, but no files, ex."cccamp07-de-1845-Freifunk_und_Recht.m4v" but its a folder.

View 4 Replies View Related

General :: Possible To Delete All The Files Including System Files As Root?

Sep 21, 2010

If I am logged in as root in a linux system and I run command rm -rf on / folder, should it remove all the files? also the kernel?

View 4 Replies View Related

Ubuntu :: How To Delete Saved Files On Log Out

Apr 11, 2010

I'm setting up a single stand-alone computer in my classroom to be used by my students at the school where I teach. I've installed Ubuntu, as it smashes Windoze out of the court every time.

I want the students to be able to log on to the computer using just one account: 'Student'. This computer will be attached to a printer so they can type up and print oOfice documents,web pages, etc. However, once they log out, I want any files they might have saved (such as a word processed document) to be removed/deleted from the account so that when another pupil logs on to the 'Student' account they start with a clean slate. I suppose you could call it a sort-of Kiosk account.

How can I get Ubuntu to clear any saved documents on log-out?

View 5 Replies View Related

Ubuntu :: Unable To Delete Some Files

Jun 11, 2010

I am using Ubuntu 10.04. I have a small HDD and I noticed that the weight of the folder .Trash-0/lost+found on my computer was of 2.6 gb.

I tried to delete the files in this folder, but it seems impossible. Even with using sudo I can't delete them because I am not authorized to do so. The files in the folder are quite weird, there are folder and files named like this: #7614692, #7613635 etc. Their groups and their users are also quite weird: -1933023744, 1624453254... Even from a live cd it is not possible to delete them. Also the date of the files is ****ed up, example:

- last access: "mar. 13 juil. 1943 15:26:11 CEST"
- last modification: "mer. 12 oct. 2022 15:59:51 CEST"

I recently upgraded this partition from ext3 to ext4, so I would guess that it comes from here. But I don't know if these files where there before or not.

View 5 Replies View Related

Ubuntu :: Delete XP But Leave Files?

Jul 15, 2010

I've got a computer with numerous media files,(video and music). It's a dual boot Windows XP , Ubuntu 10.04 install.I use it as a media box for my large LCD TV. I was wondering if anyone else has deleted the Windows system files and program folders and left the media files. Edit grub deleting Windows XP and leaving the large number of media files alone. I don't want to spend the time to backup and transfer, as it would be to time consuming. I don't want to bork the system just to clean out XP.

View 5 Replies View Related

Ubuntu Installation :: Can I Delete Old / Usr Files?

Jul 21, 2010

I have recently done a clean install of Ubuntu 10.04 [and it is all going very nicely unlike some others] on my dual boot Dell Dimension 5100.After seeing some advice about advanced partitioning I decided to expand my partition table during the 10.04 install process from swap, / and /home (where I keep My Documents) to swap, /, /home, /var, /tmp and /usr, all of which was achieved without problem.I am now getting "Low Disk Space" messages on my home partition (488 MB remaining!!!) I have emptied the trash and cleaned up any obviously large but surplus files. (I did find two that concern me but they aren't HUGE and I am unsure of what they do: file-meta.db and file-index.db in /home/john/.cache/tracker/ which are 290 MB and 108 MB respectively, last modified five months ago and something to do with SQLite3.)

Anyway, am I right in saying that my new /var, /tmp and particularly /usr partitions now contain some of what was previously held on / and /home, leaving old files that can be removed? If so, what is now surplus and how do I delete it safely? I had a bit of a dig but, as the properties in Nautilus of, for example, /usr do not indicate what partition it is on, I can't safely tell what is current and what is old.

View 9 Replies View Related

Ubuntu :: Unable To Delete The Files As They Appear Again And Again?

Sep 11, 2010

i have a pen drive that has two mp3 files.i am unable to delete the files as they appear again and again how can i format the drivee using dd command

View 2 Replies View Related

Ubuntu :: How To Delete Locked Files

Nov 10, 2010

I have a few files on my desktop that have a lock on the top right corner of the Icon like this..

How do i delete it? it tells me that i do not have sufficient permission to delete this file..

View 7 Replies View Related

Ubuntu :: Delete All Files With Certain Characters?

Nov 12, 2010

how do i delete any single one of the files in my whole disk that say something along the lines to "chromium os"? i.m just wondering because i tried to install through virtual box and failed, and probably have three different partitions consisting of nothing.

View 3 Replies View Related

Ubuntu :: Delete HUGE Log Files?

Nov 19, 2010

how can i delete my log files? They are 131.2 GB! And i need space on my pc . And is it ok to delete it ?

View 6 Replies View Related

Ubuntu :: Find .zip Files And Then Delete Them?

Apr 13, 2011

I want to use the shell to find .zip files in my music directory and all sub directories and then delete only these files. The following will find the files I want to delete

Code:find /home/me/Music/ -name *.zip -lsWhat is the next step to delete *only* these files.Would it be a good idea to move them to another directory before doing the final rm - how would I do this

View 6 Replies View Related

Ubuntu :: Can't Delete Files Of MP3 Player?

Jul 23, 2011

To make a long story short, I have an mp3 player, when it is connected to ubuntu I have RW access. However when i delete it, it goes to Trash, where some-why I can not delete it so i run out of space. So my question why, and how do i get ride of these files?

View 4 Replies View Related







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