0
votes
0answers
94 views

How to copy and rename files with powershell within subfolders?

I have the following folder and files structure that I would like to copy to a share then rename them. How can I do this with powershell? ...
2
votes
2answers
2k views

Move files to another directory which are older than a date

I am looking for a solution to move files that are year older from today. My log partition is getting full, but I can not remove them. They are needed for a long long time. Anyway one solution I came ...
0
votes
3answers
179 views

File copy between two servers programatically

Here's what I'm trying to do: I need to automate process of copying files from server A to server B. I ideally would like to have a script that is invoked by a cron job periodically on server B. ...
0
votes
4answers
232 views

Copy files from one server to another with same permissions

Im migrating to new server and i need to move few websites but i need to have same read/write permissions to new serves as they were on old server. I don't need to keep group and owner id's same but ...
0
votes
2answers
546 views

Linux Shell - How to copy directory without symlink

I would like to get everything inside one directory. How can I copy entire directory (that originally contains files and symlinks) to a new directory that should contains all files but no symlink?? ...
0
votes
2answers
329 views

copy files created in one folder to multiple other folders on linux

I'm looking for a way to copy photos that are uploaded to one folder to many other folders and visa versa. Example: a photo is uploaded to folder 1, it is then copied to folders 2-5. And if a photo ...
0
votes
3answers
3k views

SUDO permissions, file copy/chmod question?

So, I'm logged in as sudo, and seeing this... why? $ cd /var/www/drupal-6.19/sites/default $ ls default.settings.php $ sudo -v [sudo] password for sudo_username: $ cp default.settings.php ...
0
votes
3answers
595 views

Copy a file to multiple windows machines

How can one copy a file, from his windows computer, to a cluster of multiple windows machine, with one command? I thought about using psexec, but that also tries to execute the file...
0
votes
1answer
782 views

How to keep file timestamp?

When I copy a file from a PC to an other, the copy doesn't have the same timestamp as the source. I have the same probleme using either copy/paste or xcopy. The source PC runs Win2003 and the ...
0
votes
2answers
99 views

copying a file 2 connections away?

I dislike calling scp twice. I need to connect to box1 via ssh the again to boxNAME. How do i copy a file from boxNAME to my local drive? also how do i copy a file from my local drive back to ...
1
vote
2answers
942 views

diff folders and copy results over

We use a third party newsletter system which updates frequently, usually around 100 files. Each time all the developers release is the whole application again with a changelog but there's usually too ...
9
votes
5answers
12k views

Recursively copying hidden files - Linux

Is there an easy way to recursively copy all hidden files in a directory to another directory? I would like to back up just all the settings files in a home directory, not the normal files. I tried: ...