General :: Move File From Machine A To B On Same Network?

Nov 23, 2009

I have two servers on my network (at home). Let's call them A and B.

I have a small shell script that I have written on server A that zips up a file, backs up a database. It's triggered by cron once a day.

After I run it, I would like to move this file from server A to server B.

As I said, both are on the same network (in the same room, actually), and so obviously have different network IPs.

What are my options to move these files? It would need to be something that was done in perhaps a shell script that was, like the shell script that zips the files, is triggered by a cron job.

I'm assuming there are actual applications for this sort of theng (rsync?), but can it be done with a shell script? It seems very simple and basic...

How might this be done?

Systems:

Server A - CentOS v. 5
Server B - RHEL v. 4

View 3 Replies


ADVERTISEMENT

General :: Focus On Command Line Machine System, Network Basics, And File Management Knowledge?

Feb 17, 2011

As a strategy for learning linux I have decided to adopt using a lean windows based approach. I want to focus on command line machine system, network basics, and file management knowledge. In other words find out how desktop manager does it's business, so I know how to master my machine, but by and large once I have made my choices, leave it alone to do just that.

I figure I should know how applications are internally configured etc., but I also figure an apps GUI and config choices should take care of installations, and program usage as in M$ windows. Surely taking care of an applications dependencies are the responsibility of the developer, are they not?

I am working my way through "Rute User's Tutorial and Exposition (Version 1.0.0)" right now for an overall viewpoint. Can anyone suggest a specific source for a point by point explanation of the command basis of a generalised "desktop management" application (KDE,LXDE)? Better yet would be if it had some parallel comparison of the varied approaches taken by different distributions of linux.

A secondary question, is that allowed? Up to a certain point in Ms windows, a thorough knowledge of DOS 6.xx would theoreticaly enable one to more or less duplicate the actions of the windows overlay. Is there a basic distribution (or subset in all of them maybe?) of linux that would be consistent with that paradigm? What would be analogous to DOS batch files, or GM-Basic? Oh! that's 3.I am certainly appreciating the depth of this forum, and the breadth of knowledge among you forumite's. Reading it is time well spent.

View 7 Replies View Related

General :: Transform A File On 1st Machine With A Tool On 2nd Machine In One Line Over Ssh?

Jul 14, 2011

I have some file tools on a mint machine that I would rather not install on my mac laptop. Mainly because of the vastness of apt-get and the low risk of installation failure. Anyway, every so often I have a file that I want to process in place using some remote tool. Both machines can ssh right in to each other so I was figuring there must be some script or tool out there that would allow me to type out something like remote [file] [tool & args] to send my file to the other machine, get it processed, then get it back.

View 4 Replies View Related

General :: Move Ssh Known_hosts File?

Oct 19, 2010

I was wondering if it's possible to move the known_hosts file from ~/.ssh/known_hosts to ~/somewhere/.ssh/known_hosts . I have a server running Plesk and the user home directories do not have write permissions (they do have write permissions within the subfolders, however).

I was able to move the authorized_keys file by editing sshd_config AuthorizedKeysFile , but when I try to log in without password, I'm still prompted every time if I want to add the host to list of known hosts, and it fails to save every time since it cannot write to known_hosts. Thus I am still unable to automate some processes. I'd like known_hosts to be located in the same location as my authorized_keys, which does have correct permissions for users.

View 1 Replies View Related

General :: Move Old File To Other Directory?

Feb 2, 2010

I have a directory , there are many files created in it , I want to use the command to move the files which elder than 30 days and gzip it and then move it to /tmp , and then remove those files , I tried use below command but not work.

find ~path -type f -mtime 30 -exec tar -zcvf - {} --remove-files > /tmp/oldfile.tgz ;

View 1 Replies View Related

General :: Move One Big File To A New Serve?

Mar 5, 2011

I want to move a big file (92gb tar) from a server to a new one

What's the best way to do this? I did try scp username@<xxx.xxx.xxx.101>:</home/xx...les/ani.tar.gz>

Which I found on the web somewhere but it did not work for me

View 3 Replies View Related

General :: Move Files Between File Systems?

Apr 29, 2011

I have to move files between two file systems /inst and /inst2.When I perform 'cp -a /inst /inst2' it copies everything even hidden files and preserves access permissions.But when I perform 'mv /inst /inst2' it also preserves access perms and moves everything besides hidden files.Questions :hy is so ?What tool to use when moving file systems from one fs to another (rsync) ?

View 8 Replies View Related

General :: Vi Editor To Move File Page?

May 10, 2011

I have a file of 200 pages. I want to move my cursor page wise. Suppose I want to move my cursor from last page of the file to up three pages.Is there any command to do it or I use "k" to move up?

View 3 Replies View Related

Ubuntu :: Move Thunderbird To New Machine?

May 28, 2010

I have set up a new machine with Lucid and installed Thunderbird 3.0.4. I want to move the mail account etc from the old machine to the new. I understand that I have to copy the 'thunderbird' folder in 'home' to the new machine. However, if I don't create a mail account profile in the new machine, this folder doesn't show up.
I don't want to end up with duplicate inbox folders when I copy over the old profile.
What's the correct way to do this? When I have done it before, I always seem to end up with multiple (empty folders)

View 3 Replies View Related

Installation :: Move Disk To Different Machine

Feb 4, 2010

Can one install Linux on a dedicated hard disk on one machine, then move that disk to another machine and boot from it? I know Windows won't allow you to do that, but can it be done with Linux?

View 9 Replies View Related

General :: Script To Ftp A File To Remote Machine - Log The Output To A File?

Feb 5, 2010

I am using below script to ftp a file to remote machine

Code:

#!/bin/bash
ftp -nv <<EOF
open ${SERVER}

[code]....

When I execute the above file its working fine and displaying output on to the screen. How can I log the output to a file?

View 7 Replies View Related

General :: Don't Move A Directory / File If Src And Dest Are On Different Partitions

Feb 13, 2010

In order to protect myself if I make a mistake in typing a directory/filename path, I am searching for a way to prevent mv from doing anything if the source and destination files exist on separate partitions.I see no options in the man page.I just need to find a way to get the partition the directory/file is on

View 1 Replies View Related

General :: Move 1 File To A Directory Containing 3 Million Files?

Jul 25, 2011

the system currently have a directory with all the invalid files. how bad is it to move a single file to a directory containing 3 million files already?

View 2 Replies View Related

General :: Move File And Folder Date Stamps?

May 7, 2010

I wrote this little script and I need some help, I am trying to achieve following:Every day I receive new file in the /home/denis/MyData/ folder and I don't know what the file mane will be but I want to move any file that arrives there to the new location /media/DataBackup/Linux/backup/ (media/DataBackup/ is external 500GB USB drive)to automatically create new folder with the date and time stamp every day and then to move content of the /home/denis/MyData/ into the new folder with current date stamp. So every day there will be new folder and will contain files for that day only.My script is as follows:

cd /media/DataBackup/Linux/backup/
mkdir MyData_$(date +%Y%b%d_%HH%MM)
#this creates file MyData_current date and time

[code]...

View 3 Replies View Related

Ubuntu Installation :: Move 9.10 Disk To New Machine

Jan 27, 2010

I've been landed with a disk from a friend whose machine we've never managed to get into the BIOS of and tweak the boot order to include a CD drive.

I pulled the disk from my own system and ran a from-scratch install on this shiny blank disk with numerous of the tweaks I like and he'll need. (Getting pleased with how the time to usable is still dropping doing an install).

What I'm concerned about is sticking this disk in his machine and using it. I've gone with the sort-of generic 32-bit base even though both his machine and mine are Athlons. However, he's a musician and has some rather nice audio kit - as well as, I suspect, different video hardware.

Am I likely to hit noticeable problems? Is there some script I can arm myself with to rescan available hardware and update config, or can someone give a list of packages to completely remove then reinstall via the recovery boot?

I know the latter option may well cause some dependency problems that see stuff I've already installed lost - I can cope with that if I can get the GUI running smoothly.

View 1 Replies View Related

Ubuntu Installation :: Move My Settings To A New Machine?

Nov 9, 2010

Evolution 2.10.1 how do I move my settings to a new machine?

View 2 Replies View Related

Ubuntu Networking :: Unable To Move DSL From One Machine To Another

Jan 2, 2011

I have a netbook running ubuntu 10.04 Lucid Lynx and it is connected to the internet using DSL high speed internet Comcast---standard coaxial cable to modem to ethernet cabel to my netbook. The wired connection is Auto eth0. It works fine.

However, I have recently installed ubuntu 9.04 desktop edition on ANOTHER laptop and cannot get it to connect to the internet using this same modem and cable. When I plug in the ethernet cable it searches for wireless networks but won't recognise the wired network connection---Wired Network disconnected. Auto eth0 shows up under Network Connections and it has the MAC address and is set to connect automatically. I have tried restarting the computer and unplugging and plugging in the modem after about 15 min.

why I cannot just move my comcast ethernet cable from one machine to another?

View 2 Replies View Related

General :: Move Large Amounts Of Music Within A File Structure?

Dec 20, 2009

i have a car stereo that reads a USB drive with all my music on it, however to sort through the music it uses a method of finding folders containing music, then displaying them all in a list. i find this interface annoying because in order to sort the music by artist i have to go and manually move it out of the album folders by hand, this takes a long time for 11+ GB of music so i was trying to use the linux CLI to quicken the process. use a command like this

Code:

mv /media/usb/music/*/*/* /media/usb/music/*/

but for some reason this moves all my music into the last folder alphabetically in my drive, the music is all pre-arranged like this /media/usb/music/artist/album/song

View 5 Replies View Related

General :: Scripting - Move A List From A Text File To Directory ?

Jan 10, 2011

I'm sure I've done this before and am having a brain fart.

I have run into this a couple of time this last month:

I have a list of torrent files (blahblahhexblah.torrent) saved in a text file. I would like to read the text file and populate the client directory.

I can echo the file using:

But I cannot remember how to pipe the output into the directory, nor can I find any resources that describe the process.

Interestingly enough, I've had a couple of opportunities to do similar tasks with passwords and privileges and even across the LAN in the last few days. Solving this problem will help me solve the others for next time.

View 2 Replies View Related

General :: Error - Cannot Move File To The Rubbish Bin, Do You Want To Delete Permanently

Dec 14, 2010

I have ubuntu 10.10 installed I have 5 more NTFS partitions in my disk other then Home & root My problem is, when I try to delete a file or folder it says "Cannot move file to the Rubbish Bin, do you want to delete permanently? The file "Nisarg" cannot be moved to the Rubbish Bin." I have more 2 NTFS partition on portable hard drive. On It trash is working fine.My home and Root folder also haven't this problem.

View 14 Replies View Related

General :: Command Line - Move Or Copy Selected File

Jul 16, 2011

How do I move around select a file and move or copy it. All tutorials I have seen are not simple enough.

View 7 Replies View Related

General :: Cannot Move A File Into My Archives Directory In Bash Scrip

Apr 12, 2010

I cannot move a my file into my archives directory in my bash scrip.

View 7 Replies View Related

Ubuntu Security :: Move Files From OS To Windows Machine?

Jan 9, 2010

If i download files from the internet to the ubuntu home download folder will that kill off windows viruses? Ive also have avast on demand scanner-but are anti-viruses effective against windows viruses these days?

View 6 Replies View Related

Ubuntu Networking :: Cannot Ping KK Machine, Internet/network ON Machine Works?

Mar 18, 2010

I have an ubuntu kk laptop connected via wireless to my mixed network (xp, win7, other ubuntu), but i can not ping said machine or connect via ssh. Internet and smb-browsing ON this machine work, as does pinging FROM it. If this was a windows machine, I'd say a firewall is in the way, but since it's a vanilla karmic install, this should not be the case (or should it?).

View 2 Replies View Related

Ubuntu Networking :: Change Folder Names Over A Network On A Machine Using A Mac Machine

Jul 24, 2010

It seems whenever i create a folder it creates the folder as untitled folder, but i can't change the folder name it just says "you don't have permission to rename item" but yet i created the folder and it is there. One thing i have noticed is that once i enter a folder it won't even let me move the folder.

View 6 Replies View Related

Ubuntu :: Virtual Machine Networking / Network Not Working After Copied Machine?

Dec 3, 2008

I have ubuntu-8.04.1-server installed on virtual machine. It works perfect. Now, I made copy of this virtual machine. I started that copied machine and it works fine, except one thing: network does not work!
I have several others VMs with freeBSD, openBSD or Windows on it, but only ubuntu machine hes network problem after coping. I tried some other VM with ubuntu on it - same problem! I downloaded VM with ubuntu - same problem.I take a look into /etc/network/interfaces file and it looks just as it should (same as before coping) but ifconfig command returns parameters for lo only (before coping there was eth0 and lo).

View 2 Replies View Related

General :: Move Folders That Contain A File With A Specific Extension To A Destination Folder?

Oct 3, 2010

Many years ago, I converted a portion of my files to an arbitrary format with a specific extension. i no longer desire to have them in this format and i would like begin the process of replacing them because conversion is not an appropriate solution. unfortunately, they are mixed in separate folders of the same root folder with files in my current format of a different extension. I feel it would make this process easier if I were to move every folder that contained a file with the undesired format to a separate root folder. The files are stored on a Linux server and shared via samba. How can I do this with a couple of commands or a script? I am open to other suggestions as well. I want to avoid time spent editing text files. Ultimately, I'd like a command that produced a list of full paths for folders, sorted by the number of levels would be a nice touch. A list of all of the files is clearly not what I'm looking for.

View 2 Replies View Related

Networking :: Transfer Files From A Machine To A Windows Machine Which Are Not In The Same Network?

Jul 6, 2010

I had run one script in unix machine and want to copy the results to a windows machineBoth the machines are on different networksIn linux machine trying to do the ftp to the windows machine its giving connection refused. How to chech whether ftp is running on that linux machine or not?Also tried scp and ssh , both are failing

View 6 Replies View Related

General :: BASH Script To Move Files/folders To Either The .Trash File Or To Another Direcotry?

Dec 2, 2010

I am looking for a script/advice or guidance on how to write a script so that when I use the 'del' command it removes/sends the files/folders to a I specify for example 'dustbin

View 13 Replies View Related

Networking :: Machine A Can't Access The Network When Machine B Goes Offline?

Mar 1, 2011

I've run into a weird problem. Two of my linux machines (A and B, both running CentOS 5.5) are connected to the same wall ethernet socket via a hub. Bothf them are configured for static IPs. The trouble is that when machine B goes offline or hits a kernel panic, machine 1 goes offline too. What I've noticed is that in this condition the "route" output from machine A does not show any entry for the default gateway either The contents of /etc/sysconfig/network-scripts/ifcfg-eth0 for machine A are:

Code:
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0

[code]...

View 3 Replies View Related







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