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

Associate old domain user profiles/files to accounts on new domain

I have 2 domains, A and B. We are migrating our user profiles and computers from A to B using ADMT. Our test accounts and machines migrate fine, however the only issue is that it updates the SID, so users would lose access to their desktop/files. Is…
0
votes
2 answers

Cronjob to visit each url of a list but not save them

I have a txt file list.txt that have bunch of urls, one every line. I want to set a cron job that wget/curl each url of the file once a day but does not save them in the computer. I tried to run this on the terminal first. wget -i /root/list.txt -O…
0
votes
1 answer

Way to save apache losgs with IP Info

i use this command to live see apache logs: sudo tail -f /var/log/apache2/access.log I use a Ubuntu 18 VPS wich i have root access. this logs are also saved to the access.log file true? (because when i search some string in the live mode i find some…
Diego
  • 1
  • 2
0
votes
0 answers

RSYNC :: How to copy only new files... if you delete the files you previously copied?

I have a remote server that is continuously generating log files and saving them to a directory. Unfortunately, the log files are generated at random times, so you can't predict when the next logfile will be available. I have a second server…
Pete
  • 131
  • 6
0
votes
1 answer

Need help in Moving files to the backup directory except the last 10 files based on file NAME not date modified

I have a situation where a server is creating journal files (MJ00001-MJ000x) and I want to move all the files to a backup directory but need to keep the last 10 in there to get the archive. I looked at robocopy and Powershell Move-Item but the…
Pezzz
  • 3
  • 3
0
votes
1 answer

Where to find the website folder in ubuntu server?

So someone gave me the task to find where is the website code exist on ubuntu server when I look at the the index.html file path it is /var/www/example.com/html but when I go to /var/www directory I am not able to find example.com folder. Can anyone…
adnan ijaz
  • 1
  • 1
  • 1
0
votes
1 answer

How can I search for symlinks that point to other symlinks?

I have morass of chained symlinks like this scattered around: A (symlink) -> B (symlink) -> C (file) Some may even involve longer chains, I'm not sure yet. When manually examining a single file it's easy to see what's going on but I'm looking for an…
Displayname71
  • 109
  • 1
  • 7
0
votes
1 answer

Windows 7-File Copy Issue

I am using Windows 7 and my application server is Windows Xp. When I copy files from my local to server,it takes long time. Is there any solution for solving this ? When I copy files from Xp to Xp, it is fast. I found a soln in…
Manoj M
0
votes
0 answers

How to merge two data sources with slightly different folder names

How can I copy all .msg files that are spread throughout some GUID sub-folders in one folder to another folder that has a slightly different folder name at the end. Is it possible? So for example: Source c:\Folder A\16-1167 Contoso 1 Hacker…
Damian
  • 1
0
votes
1 answer

What could cause files to end up zeroed out?

A client sent us an external hard drive where at least half the files are corrupt. They are broad mix of filetypes (images, documents, etc) and there is no discernible pattern into which are corrupt. They appear as their original size, however, when…
0
votes
1 answer

Drupal 9 files storage on Azure App service

Been fighting with the problem for a month now. Have Drupal 9 set up on Azure App service with docker images running php8 (base image drupal:9.1.7-php8.0-apache) I have found out that there are two ways to have the "sites/default/files" public files…
0
votes
0 answers

Deleted public_html without reason

I had a problem today in the morning which I am still trying to figure it out, so it does not happen again. Somehow a lot of files from public_html got deleted, except one folder. I did not delete anything. Basically the whole website went…
0
votes
1 answer

Cron to find multiple file types and automatically delete them

I am trying to put together a command that will find multiple file types and automatically delete them. I want to run this in a cron every 10 minutes on my server. I would like to find files of type: .swp, .save, .swo, .maintenance and .bak Here is…
Alex Douglas
  • 353
  • 1
  • 5
  • 12
0
votes
1 answer

Compare two files to find the same output in each

I have a file1.txt and file2.txt i want to tell if all the information in file1 is in file2. If it is, then output it to file3.txt otherwise dont do anything. I looked at comm command and diff, but it isnt apparent comm may be best for this use…
user700070
  • 153
  • 3
  • 8
0
votes
1 answer

User-Permission on Folder without affecting owner:group

How can I allow a specific user on my Ubuntu desktop to view/open all folders and files in a specific location without affecting or changing the owner:group of that location? Until now I need to legitimate me and I don't want this behavior. The…
Omexlu
  • 43
  • 1
  • 9