Ubuntu :: How To Make Rsync Command Open In Terminal
Sep 14, 2010
I have the following rsync command for making some backups:
Code:
rsync -r --progress --delete -H --numeric-ids -a --exclude=.gvfs /source /media/Backup
If I paste that in my Terminal, it will perform a backup of all the files and show me what's going on in the Terminal window. But how can I make that into a launcher? I have made a launcher on my desktop with that code in its Properties, but double-clicking it starts the rsync process (I can see HDD activity) but a Terminal window won't open.
I have a problem that I can't seem to figure out. I can easily create a .sh file that will execute a command in Terminal, but as soon as it executes the terminal disappears. How do I get it to stay? My idea is to have the keyboard shortcut "ctrl+alt+del" open a .sh file with the contents "ps ax". Then it would be just like having a task manager; the terminal would open with "ps ax" already executed, and all I would have to do is kill the process number.
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 use the fork() function in C it creates a child process but all the output and input is binded to the same terminal as the father process.my question is, how do i make the new process open a new terminal window in linux?
In Xubuntu 9.04 I could right click in any directory folder and have the option of opening a terminal window "there". So the terminal command line would open preloaded to that directory. I know, I'm lazy, but it sure made life (and command line work) easier. But it's not available in my new install of Ubuntu 10.04. Now, I know that my gui environment has changed from xfce to gnome, but I would have expected MORE features, not less.
I am trying to use a command to open a partition or disc from the top like open up external drive, and not have to be externaldrive/videos or whatever. The reason being is to use in cairo dock, I have tried to drag n drop like i am able to with regular folders, but no good. I seen the option to run a command, and figured I would try it that way.
I have the partitions and discs i want to access mounted. they are: External Drive (/dev/sdc1) Storage (/dev/sdb1) Windows (/dev/sda2)
I tried to open them in terminal, /media/storage: no such file or directory; /dev/sdc1: Permission denied; open /media/storage or /dev/sdc1 Couldn't get a file descriptor referring to the console; se7en@PC:~$ nautilus /media/storage or nautilus /dev/sdc1 .....
Along with a pop-up saying 'the location is not a folder'.
I have an "error", its not really and error, every time I open the terminal, it shows this: Reading: command not found Building: command not found Reading: command not found *****@****-****:~$
I have my xbox 360 connected to my laptop running Ubuntu 10.04 using the Ushare program. In order to reset Ushare and have it send any new files I have to the 360, I have to go into the terminal and enter
Is there a way I can have an icon in my panel/toolbar thing at the top of the screen that will run this command string automatically? I'm getting tired of having to enter the whole thing by hand every time.
I just switch to fedora from windows recently. And I love the terminal of fedora alot. The problem is when I run some command on the terminal, I need to wait for that command to finish before executing another command. This is very inconvinient, say If I open eclipse using the terminal, this eclipse program will hog to the terminal until I closed it. So if I want to use terminal again I have to open another one.Hence the question is: Is there any way open multi processes(command) using only one terminal?
I'm having Ubuntu Kramic Koala and i want to create a custom application launcher on the panel so when it is clicked it should open a terminal window and run the following command and then show the output for 5 secs and then closes the terminal... how can i do this?
Code: cat /proc/sys/vm/laptop_mode && sleep 5
the above command is what i want to be executed at time of running the custom application launcher. if i paste the command in a terminal, it will show the output for 5 secs and then terminates... that's almost what i want. what i exactly want is that, i want it to work like when i click on the shortcut launcher, it should open a terminal and then exectues that command, show the output for 5 sec, pause, and then exits the teriminal.
Every time I boot up ubuntu I usually open 3 terminal windows and ssh into the same server. I would like to either click a shortcut, or run a single terminal command that will do the equivalent.
I came across the "gnome-terminal" command, but I was unable to get it to trigger an ssh command.
Ideally I would like to have a script that I pass in the number of windows I want to open and the server I would like to ssh into for each window.
When I open a terminal and start the 'top' command to view the running processes, in the summary view I get 4 users. I guess that in addition to my account the root runs in the background but who are the other 2??
When I try and run gedit command through terminal to edit files it won't open them
Quote: (gedit:4113): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
I've fallen in love with Terminator as a replacement for the standard gnome-terminal app.
However, I'm also very much in the habit of using the nautilus-open-terminal extension for launching new terminal sessions.
I'd like nautilus-open-terminal to launch Terminator rather than gnome-terminal.
A quick search of my system and the web didn't reveal anything. i didn't find a gconf setting to control this. A quick look at the source code didn't help much either.
As it's result command creates file /backup/snapshots/backup/databases/mysql.sql. How can I force it to put file in /backup/snapshots/mysql.sql? It's mandatory that source must be remote (it's part of more complex script).
The Linux mint terminal has green and blue for the prompt. How do I make the Ubuntu terminal look like the Linux mint Terminal? I have looked at the color settings under the Terminal profile preferences and I do not see that setting available there.
I use openvpn to connect otherwise isolated machines, and use samba to share filesystems across the vpn, which works just fine.But I recently discovered that copying files using rsync -e ssh is so much faster than copying from a mounted filesystem - like about 5 times faster.I've got comp-lzo enabled in both server and the client, at least I think I have, the directive is there in both the server.conf and the client.conf files, but how do I check that it's active?Does anyone know if I can make openvpn behave more like rsync, because copying is easier than rsyncing?
I'm rsync'ing a bunch of files between a Windows and a Linux system. Since not all Windows care about case, some of the files on the Windows system no longer have the same casing as they had on the Linux system. But rsync now treats these files as different and uploads a new copy.
Is there a way to force rsync to not make directories in its destination directory; ie, to simply dump all of the files from the source directory directly into the destination without copying any of the folders that the files were originally in? I tried --no-dirs, but that seems to only be for empty directories.
in home I do not have internet connection, but in work I have internet connection, in home I install Fedora 14 for my 6 years old daughter and she use it for play games like supertux and openarena and .So I want install opensuse for my daughter and I want test it. for fedora , I download all packages with rsync in work and move them to home by USN flash and then I make localrepo in home and install all packages , I need , I want do this for OpenSUSE , all of us know DVD , does not has all packages , I need , so I have to download all packages and make localrepo in home and install all packages , I need , Can I do this for OpenSuse or not ,I want download all packages need by OpenSuse by rsysc and make loacl repo, How I can do this for Opensuse ?
I work for a company that rsyncs its media content to a datacentre daily for distribution via https to our clients. Unfortunately we've started to have problems with our rsync command/script.
It runs fine, but it seems to re-copy files that are already at the destination, of the same size and of the same date modified? We have hundreds of thousands of files, so this really cant happen. Our team here at the company use Windows XP to create the media, then put in on a the local suse server via SMB.
The code is
Code:
Both servers local and remote are Suse 10. The target/paths are irrelevant because they are correct and work.
Local server LS -L
Code:
For example
Remote server LS -L
Code:
As you can see local/remote files are the same, any ideas why this re-copy would happen? What's rsync playing at? We obviously just want it to sync new files and changes.
The requirements are: SystemA must be 100% Identical to SystemB no matter what rsync runs into: symlinks, same size files with different dates, directories that no longer exist... etc. What is your perfect rsync command?
I'm trying to put a variable into the rsync command but I just get some BS error about escaping - whatever that is suppose to mean.
This is my command:
Code: rsync -rvvuc --exclude '/Output/*' ${OPTARGS} --delete "${SOURCE}scripts/" "${DEST}scripts/" ${OPTARGS} has this value: --rsh='ssh -p 34'
Wont work. If I type that text directly, then it works. Other then using some if statement to have two different command calls, how can I make this work?
We're in the process of implementing an offsite backup of all our servers to a remote Linux server. We're using rsync over ssh.What I've found is that characters such as ±, ¶,´ and £ are replaced on the Linux server with underscores.I don't mind if it changes these characters in the filenames of documents, but when it renames a language pack from Espa±ol.clx to Espa_ol.clx, it could cause issues for us further down the line.
What do I need to do differently to make the special characters copy over correctly? For the initial sync which will take place locally, before the machine is moved offsite, I have SAMBA enabled. I am able to copy files from Windows to the Samba share, retaining the original filename, though it looks different in the Linux directory listing, i.e. t̻st becomes ĻstThese files get deleted by rsync when it runs, as it does not match the filenames.