Questions tagged [files]

Organized data encoded in a pre-defined format and stored on a filesystem.

In the computational sense, one-dimensional array of bytes stored in a filesystem, typically encoded a pre-defined format, often indicated by a file-extension or "magic number". More "durable" than in-memory storage.

677 questions
0
votes
1 answer

rsync synchronizing files only without creating folders on destination

Is it possible with rsync to not create directories on destination? MY SOURCE: a/ a/x.txt b/ b/y.txt b/c/g.txt MY WANTED DESTINATION: d/x.txt d/y.txt d/g.txt Is there any way to do this with RSYNC?
InsaneAR
  • 1
  • 1
0
votes
1 answer

make backup of file when user run rm -f

Here is the scenario; I need to authorize a user to do activity in /opt/dev-folder/. Developer makes frequent changes in file, some time they replaced or remove original file. I have assigned privileges with sudo. Now i want some idea how can i take…
Email geek
  • 67
  • 1
  • 8
0
votes
1 answer

SSH: connect with public key avoiding passphrase prompt

root@myhost:/# ssh -i /opt/id_rsa.pub azureuser@myhost2.cloudapp.net Enter passphrase for key '/opt/id_rsa.pub': azureuser@myhost2.cloudapp.net's password: I have created key pair without passphrase, is it possible to get rid of passphrase prompt…
Somebody
  • 364
  • 1
  • 6
  • 17
0
votes
2 answers

arrays in puppet

I'm wondering how to solve the following puppet problem: I want to create several files based on an array of strings. The complication is that I want to create multiple directories with the files: dir1/ fileA fileB dir2/ fileA fileB …
paweloque
  • 267
  • 1
  • 4
  • 10
0
votes
2 answers

Linux: don't use file system cache under a directory

For a PHP website I'm monitoring, I need to see what files are being used each time the browser makes a request. I thought of using find . -type f -amin 1. With that I get all files which were read in the last minute (it's a developing server so…
GetFree
  • 1,500
  • 7
  • 23
  • 37
0
votes
3 answers

Files copying between servers by creation time

My bash scripting knowledge is very weak that's why I'm asking help here. What is the most effective bash script according to performance to find and copy files from one LINUX server to another using specifications described below. I need to get a…
0
votes
1 answer

Fox Pro Database File Locked by Shadow Copy?

I'm using Process Explorer to determine what process has a lock on a particular Fox Pro Database file in windows. It's telling me that System has a lock on it. When I go to kill the "System" process (which if you ask me doesn't sound like a very…
leeand00
  • 4,869
  • 15
  • 69
  • 110
0
votes
2 answers

How to access data in different userhomes from a single non-root user

I have Owncloud on my server running, and it saves uploaded files unter /home/uid/files. But Apache is running as a non-root user, and it can't access(write) the files under /home/uid/files. What is the best way to grant Owncloud access to a…
djboris
  • 3
  • 2
0
votes
2 answers

File system cache / drop cache(debian)

if i play those command : sync echo 3 > /proc/sys/vm/drop_caches Will the server be force to read the correct file on disk until i put 0 again ? Or this work only one time, and if i want to clear cache again, i've to put 0 and 3 again ? Thanks
NicoMinsk
  • 125
  • 8
0
votes
1 answer

How to distribute files to another server

Let's say I have 2 servers: web server (apache, php, mysql) storage server (lighttpd) - I wanna store a lot of images How can I upload images to storage server via a web interface stored on web server (in real-time) ? I've read about NFS but I'm…
Robert
  • 3
  • 2
0
votes
1 answer

Is there a GetTyp / GT2 alternative?

I've used both tools since years now, mostly to determine the file types of files which lost their file names because of disk problems. Unfortunately GetTyp is discontinued, GT2 is no longer actively developed and also lacks some features GetTyp…
Daniel Rikowski
  • 758
  • 4
  • 10
  • 19
0
votes
1 answer

nginx php-fpm uploaded files have nginx ownership after executing move uploaded file

I have a problem with php 5.3.6 using PHP-FPM and file uploads. My Nginx runs as user nginx PHP-FPM uses pools configured for each vhost. For example a user: test group : test runs one pool. When the php file uploads to temp file it is owned by user…
Abhishek Dujari
  • 567
  • 2
  • 5
  • 17
0
votes
6 answers

Operating System Files

Consider the scenario of an admin wanting to perform a backup of operating system files. Question: Does the windir (i.e. "C:\Windows") contain only operating system files / information about OS? Can we simply replace it with previous backup?
Vinay Pandey
0
votes
1 answer

How to find out what's automatically processing a file when placed in a folder

When I place a file in a particular folder, it gets deleted within a few seconds. I think there is some process that is doing something with the data in the file and then removing the file. What's the simplest/fastest way I can find out what's…
Brandon Moore
  • 456
  • 2
  • 6
  • 17
0
votes
2 answers

Recursive deletion of files (bash)

I'm familiar with how I would tackle this with PHP, however I'd like to get some more practice with bash scripting. The task is to delete all files in a folder, which itself contains subfolders (with files). The files would typically be .pdf (or…
a coder
  • 789
  • 4
  • 20
  • 38