Software :: Post Operation In Rsync?
Feb 11, 2011Is there a way to do any specific operation or executing command after copying the file from source to destination using Rsync?
View 3 RepliesIs there a way to do any specific operation or executing command after copying the file from source to destination using Rsync?
View 3 RepliesI am using apache2 with subversion and trying to get post commit script to run an svn update command. All svn commands seem to work fine manually
Everything used to work fine but then the server ip changed and I can no longer access it with the web name and have to use the ip directly
I am using tortoise svn with vista on my work machine
Here is the script
#!/bin/sh
export LC_CTYPE=en_US.UTF-8
/usr/bin/svn update /home/common/webroot/bob
Here is the result.
Command: Commit
Modified: C:UsersMattDesktopcheckout - bobindex.php
Sending content: C:UsersMattDesktopcheckout - bobindex.php
Completed: At revision: 63
Error: post-commit hook failed (exit code 1) with output:
code....
I think what i need to do is update the certifcate for the apache2, but I'm not sure how to do this, where to put it, and then which of the thousand apache config lines needs to be changed
Thought I'd post it here because it's more server related than desktop... I have a script that does:
[Code]....
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?
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.
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.
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
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...
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.
Code:
Here is the rsync command embedding in the .sh script.
Code:
Here is the cron entry:
Code:
For some odd reason, I cannot post on the ubuntu forum and the LinuxMint forum. Yea, I know.... the irony... I am using Mozilla and have tried Chromium, but that did not fix my problem. When I click on "submit" to post a thread, the page will just say "loading..." and nothing happens for a really long time. Does anyone know what is up? I tried posting on one other forum that I go to often and it seems to work out fine. I haven't tried any other forums though.
View 7 Replies View RelatedAfter I set to use some modules, say, pam_access.so, I want to know if there is a way for the administrator to check if any invalid attempt was happened and blocked by that module?
View 15 Replies View RelatedI have installed Fedora 10 in my laptop. After installation in Fedora 10, im not able to use Touchpad to perform a task like to open a folder/open a window/select a word. I am doing above mentioned operations through left button/right button.
View 4 Replies View RelatedIn the system monitor it states:Release 11.2 Kernel Linux 2.6.31.5 -0.1 -desktop
GNOME 2.28.0Last week when I rebooted my machine, I suddenly found my machine had no response to any click or typing. When the cursor move to any icons, they can be highlighted, but when I click them, no response at all. The weird thing is almost every time after I reboot the computer, it can work for a few minutes, then stop working. But if I press Ctrl+Alt+Backspace, it can be log out.
I think there must be something wrong with my GNOME, 'cause everything seems working fine when I login IceWM. may be recover the .config file in my home directory. But I don't have this file in my home directory.
I was messing around with my drive trying some different arrangements of partition to get another one inside. overall the result doesn't differ much from the original but while messing with it I done a lot of steps. I thought GParted will do the minimal number of operations but it didn't. it just traced all my operations one by one. this gave it a few days worth of work. As I don't want to loose data I can't hit cancel but I don't want to wait few days for it. Is there any way to tell it to stop after completing the current operation? It's from natty ubuntu live cd.
View 1 Replies View RelatedTrying to install 10.10 for thr first time from a cd and am new to all this. when i say to install along side windows it gives me the option to say how much space to give ubuntu and i say to give it about 90gig to make sure i have room for music and movies and such... then when it starts to partition i get an error in the middle saying "an error occurred while writing changes to the storage device. the resize operation has been aborted" what can i do to get it to work? is 90 gig to much? not enough? i wouldnt mind doing a full install and deleting windows but i need to be able to use lightroom 3 and photoshop cs5...
View 9 Replies View RelatedSo hibernate used to work fine on my computer, but then after some updates one day - the option just disappeared from all log-out consoles from all desktop managers (xfce4, gnome .etc).xfce4-power-manager now says "Hibernate operation not supported" when I attempt to select it.
View 1 Replies View RelatedI've the following input file (sorted.txt)
Code:
A 1
A 1
[code]...
I run SUSE on my machine for a year, but I'm really a newbie on Linux. In the system monitor it states:SUSE LINUX Release 11.2 Kernel Linux 2.6.31.5 -0.1 -desktop GNOME 2.28.0Last week when I rebooted my machine, I suddenly found my machine had no response to any click or typing. When the cursor move to any icons, they can be highlighted, but when I click them, no response at all. The weird thing is almost every time after I reboot the computer, it can work for a few minutes, then stop working. But if I press Ctrl+Alt+Backspace, it can be log out.
I think there must be something wrong with my GNOME, 'cause everything seems working fine when I login IceWM. recover the .config file in my home directory. But I don't have this file in my home directory.
I'm using fedora 11. I want to do some operation like after saving a file (moving ,copying,..) the system need to ask that "DO you want to encrypt?" . If yes I am able to run the crypt module (which I already implemented..). Is it possible to invoke a encrypt module which I implemented in c language.
View 2 Replies View RelatedWhat happen internally when we insert the floppy into the linux operating system? Who will take care of making the entry in the /etc/mtab, etc. Tell me whole internal operation of the kernel when we insert the floppy.
View 5 Replies View RelatedI am having a problem when I try to login as su.I type the command SU and then the password as normal and I get su: cannot set groups: Operation not permitted I am not sure what could of caused this error and how to fix it.
View 2 Replies View RelatedSELinux is enable on my system. When i try to carry out the below operation it fails, giving me te error below.I disable selinux before i was successful, but who can help me out to carry this excercise with selinux enable.
[root@wisetech ~]# mount /dev/cdrom /media
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@wisetech ~]# cp -ar /dev/cdrom /media/. /inst
[code]....
i am having problem with the following code(trying to updoad a file):
Code:
HINTERNET internet;
HINTERNET ftp;
internet = InternetOpen(NULL , INTERNET_OPEN_TYPE_DIRECT , NULL , NULL , 0);
ftp = InternetConnect(internet , "127.0.0.1" , INTERNET_DEFAULT_FTP_PORT , NULL , NULL , INTERNET_SERVICE_FTP , 0 , 0);
[code]...
so FtpPutFile returns the following error:
Code:
12003
200 Type set to I.
200 PORT Command successful.
550 Operation not complete
while iam installing centos 5.2 i am getting following error :
LVM Operation failed vcreate failed for <fsset.partition device instance at 0xb7C1ef6c>
user that started using Ubunto 6 month ago and I have now also installed fedora 13 to see wich operation system I like best... I have 3 primary partitions 1 for windows 1 for fedora and 1 for ubuntohen I installed ubunto I had a LILO (linux loader) like program that made me choose between Ubunto and Windows at start up... after installing fedora it goes automaticaly to fedora w/o making me choose... I can still mount my win/ubunto partitions so I haven't messed up compleatly... how do I "restablish" the linux loader deamon so that I can choose freely between the 3 operation systems?
second... when I installed linux stupid windows killed my backup hard drive where there are a lot of valuable resarch data... so now I have a 6 gb "unalocated" partition that I would love to be able to recover.... I would appriciate if somone had the answers to my guestions... so fare I like fedora because it seems better organised than ubuntu though the difference between the two linux distrubitons are hardly notacable
The command and error message:
gtwy ~ # ip rule add from 64.251.23.186 table t1
RTNETLINK answers: Operation not supported
Older article of the same problem, but it did not help me: http://forums.gentoo.org/viewtopic-t-696982-start-0-postdays-0-postorder-asc-highlight-.html
I have looked on google at great lengths to try to find a solution. It seems that my kernel configuration is missing something? My system/kernel is: 2.6.36-gentoo-r5 #3 SMP Thu Jan 13 10:49:06 EST 2011 x86_64 Intel(R) Xeon(R) CPU X3220 @ 2.40GHz GenuineIntel GNU/Linux.I am posting this on SuperUser since this system is used as a workstation and this problem is unrelated to specific tasks that are handled exclusively by servers.iproute2 is installed:
gtwy etc # emerge --search iproute2
Searching...
[ Results for search key : iproute2 ]
[ Applications found : 1 ]
[code]...
I'm dualbooting XP and Kubuntu on my laptop, and want to move some files from my ext3 part to the NTFS part. Mounting it goes fine, but can't write, create folders, etc. to the NTFS part. Started looking for people with similar problems online and found the guide on this site, so I installed ntfs-config and went through the steps, checking "Enable write to internal device", etc. Still no good. I tried manually putting in the write option on the mount command, no flags comes up but konsole still says "Operation not supported." Dual-booting Vista and Kubuntu Jaunty
View 3 Replies View RelatedI am using a Sharp Netwalker with the Netbook Remix Gnome desktop. Double-clicking to start applications using the touch screen is cumbersome, so I wanted to try setting Gnome for single-click operation. I can't find any obvious way to do that.
View 2 Replies View RelatedNautilus won't start, for example, I click home folder, the bar below display "opening username" for 5 sec and nothing opened. I used another account seems no problem. The problem happened since my last update (and I forgot to close firefox and seems some crash happened). When I open the terminal and click the icon in Gnome, the terminal show
(nautilus:3411): Nautilus-GDU-WARNING **: unable to query info: Operation not supported
I am using 9.10 Ubuntu with the Compiz window manager. I am interested in changing the behavior of the panel (top and bottom) autohide operation. I have been in the CompizConfig Settings Manager / General Options and changed the Edge Trigger delay but that does not seem to impact how fast the panels unhide when I am at the edges. I would like to delay the response time before unhide occurs. Also, I would like to narrow the trigger region so that I have to be closer to the edge to trigger it. Does anyone know how to control these things? Can you direct me to any documentation? I am comfortable working underground (command line, editing, programming) but I often find myself stepping into an ocean when I try to solve simple problems,
View 2 Replies View RelatedI have a file named password in my home directory. I want to delete it.
Code:
:~$ rm password
rm: cannot remove `password': Operation not permitted
Code:
:~$ ls -l password
-rw-r--r-- 1 adit adit 8 2010-06-29 10:00 password
This is my home directory. I am the owner of this file. Still I can not delete this file.