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


ADVERTISEMENT

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

General :: Check A Process Which Is Over Loading The Serve?

May 12, 2011

How do I check a process which is over loading the server. I give command Top andthe average load of the server is so high.

How should I kill the over loading process.

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

General :: Configure Sendmail (Serve Two Domains) For Slackware

Apr 19, 2010

I'm configuring sendmail that runs on Linux Slackware but find some difficulties to do some quick startup due to its complexity and massive documentation. Suppose I want to configure a sendmail that can serve 2 domains:
ethereal1m.no-ip.com
ethereal2m.no-ip.com

I use noip2 client software to connect with noip server that translates the dynamic IP addressed domains, setups POP, and does forwarding. By having 2 domains, I want to able to send email between admin@ethereal1m.no-ip.com and admin@ethereal2m.no.ip.com;therefore, my machine acts as both a server and a client. How can I setup sendmail so that it acts as both server and client? How to register email address and its domain on sendmail?

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

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

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

Programming :: Make A Folder For Each File In A Directory Then Move The File Into It

Nov 29, 2010

Initially I thought - use a for loop with ls in it:

Code:

However this causes lots of problems (folders have extensions, I have duplicate folders, the names with spaces create a folder for each element of the name).

The contents of the folder is basically movies (some with subtitles). Some of the names have things like (original) or CD1 CD2 in them.

View 15 Replies View Related

Programming :: Move The Index Of A File To Another Existing File?

Feb 8, 2011

i want to move the text of a file to another file,using sed command. how can i do it?

View 1 Replies View Related

General :: Shell Script For Identifying The File And Zip All Files, Move The Files To Target Dir?

May 7, 2011

1. Every Sunday2. Find all files older than 1 day3. Gzip these file4. Tar up the gzipped files into one tar file.5. Name the tarball with a date stamp indicating what day it was created, so we know that week's files are in the file

View 3 Replies View Related

General :: Move A File To Some Path And Create That Path When It Doesn't Exist?

Oct 8, 2010

I use this command:

Code:

find ./ -atime +360

to figure out the files that haven't been accessed since 360 days. The command above will return results like this:

Code:

/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc

I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:

Code:

mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext

But I want the executed command to create this path

Code:

/old-files/uploads/2010/02/

If it doesn't exist.

View 6 Replies View Related

General :: Serve Ssh Connection To Wifi Devices While Connected To A Wifi Network

Jul 21, 2010

I was wondering if there's any way for a laptop to be both simultaneously connected to a wireless network, while at the same time acting as an ad-hoc network with local access to serve as a wifi connection for my mobile device, which would be ssh-ing into the laptop and using local resources.

View 1 Replies View Related

General :: Can Move Windows File Server To Server

Oct 21, 2010

we have moved to linux platforms now. can i move my windows file server to linux server,main work on this windows server is sharing folders which having secure permissions to respective groups & users.i knew we can share folder on linux. before formatting my windows server i want to know can we create new users to access particular folder?. users will not have any other kind of access except accessing there data folder. currently we have below scenario :users named a,b,c,d & e. all users having their folders to access. a & c are in the same group & they have common access to other common folder. please help me to change my server in ubuntu, i have planned to migrate in ubuntu server 10.04 (64 bit).

View 5 Replies View Related

Programming :: Move A File In C?

Apr 17, 2011

I'm trying to move a file in C, but I guess there is a simple method to do this in libc!

Somebody knows how can I do this on libc, or using some "default" method?

View 9 Replies View Related

Fedora :: Cannot Move File To Trash

Mar 6, 2010

I'm trying to move certain files to Trash using File Browser. I continually get this message:"Cannot move file to trash, do you want to delete immediately?"I am logged in under my user name; I (my user name) am the owner of these files; ALL permissions are on (rwx for owner, group, and other); and Trash is empty. Still I get this message.

View 4 Replies View Related

Ubuntu :: How To Move A File Over Ssh To Server

Apr 4, 2010

how to move a file over ssh to server but I cant get it back via terminal

Code:

scp Downloads/test8 user@host:home/user/Documents

moves it to server now i need to transfer back, I know I can do it with nautilus but i wanna learn terminal, I have googled but cant find what i,m looking for

View 2 Replies View Related

Ubuntu Security :: Can't Move A File / What To Do?

Nov 6, 2010

OK I am trying to move a folder to a restricted area and it says I need root access, how can I get root access I been trying for ages and searching Google does not help because I am so new to Ubuntu I don't know what command lines mean or anything.

View 2 Replies View Related

Programming :: Move The End Of File Indicator?

Jun 4, 2010

Is there a valid way, or trick to move the EOF indicator of a file? For example the file contains the data:

Code:
I am asking question.
0123456789
This is the example content of the file.
End is after the period.

I want to move the EOF after the number 9 so that when I read the file it will now contain:

Code:
I am asking question.
0123456789
Is this possible? Language to use is C.

View 4 Replies View Related

Ubuntu :: Apache Won't Serve Up Index.php

Jan 13, 2010

I recently restarted my Apache server to change the max upload from 5mb to 25mb. Once Apache restarted I tryed to go to my website via url www.website.com and a blank page with this source code:

<html>
<body bgcolor="#FFFFFF">
</body>
</html>

I also have two demo websites that I am running and when I go to there url's www.website.com/demosite apache will serve up the index.php

I didn't change anything but the max_upload in the apache2.conf and restarted.

View 1 Replies View Related







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