General :: What Is Tpurpose Of Preserving Timestamps?
Mar 31, 2011
I could understand the idea of security "if I haven't touched the file in 9 days, and the timestamp was changed, I know someone was in my system". But, is there any other purpose for preserving timestamps?
View 3 Replies
ADVERTISEMENT
Apr 5, 2010
I'm using two NTFS formatted partitions. One is internal and holds all my data. The other is on an external hard disk and is where I back up all my data to. What I'd like to do is copy all my files from the data partition to the backup partition and preserve all the windows' timestamps (including the file creation dates).How hard can this be? Well it appears that in the case of Ubuntu the answer is very hard indeed.I'm aware that Linux does not support the concept of a file creation date natively. However, according to the ntfs-3g website, all of the windows' timestamps (including the creation date) are mapped on to the system.ntfs_times extended attribute (link). So if you preserve the extended attributes when making a copy then, in theory at least, the timestamps should also be preserved.
I read on another forum that a file's timestamps will be listed (albeit in an unreadable hex format) if you run the following command:getfattr -h -e hex -n system.ntfs_times <filename>Unfortunately however, I just cannot get it to work. With every file I've tried I simply get a message saying "no such attribute".
View 9 Replies
View Related
May 5, 2010
My samba-shares are mounted in fstab. Everything works fine except for one small issue: when copying files from the local PC to the share the files are copied but the timestamps and permissions of the files are not. Instead a message "operation not permitted" appears. 'root' on the client can copy files WITH timestamp etc, a normal user cannot.
Below the line in fstab on the client and smb.conf on the server.
View 3 Replies
View Related
Nov 19, 2009
The requirement was to write a shell script for a cron job set for every two hours for all days.The Script has to scan log files (*.log) for the logs posted only for the last two hours.... and append them in a new file...I am clueless abt how to scan/compare based on time stamp seen in above logs.
View 2 Replies
View Related
Jun 13, 2011
cp (GNU coreutils 6.9).
I have these files:
Code:
I want to copy them to /xp/borrar/ such that the result is
Code:
Can this be done with the cp command alone?
View 7 Replies
View Related
Jun 3, 2010
I need to copy my data from the pc to an external hard drive with keeping the attributes; so i used the command
cp -rp ~/sourceDir ~/Destination
but when i am coping it it give the error message "cp: failde to preserve ownership for 'file' : Operation not permitted and it copied the files to the destination but the attributes has changed from
-rw-r--r-- to
-rwxr-xr-x
I tried to copy it by loging as the root also but still the same thing happens. how to copy the files with preserving the attributes
View 7 Replies
View Related
Nov 10, 2010
How to backup my Linux server for preserving data in case if hard disk crashes?
View 2 Replies
View Related
Feb 16, 2011
Here are the contents of the file
1600
1900
2200
2800
I want to read file content using shell script and check if the difference between the two line count is 300
View 5 Replies
View Related
Nov 30, 2010
If I have a partition like /dev/hd1 that is unencrypted and want it to be encrypted, but want to keep everything currently in that partition, how can I do that?
View 2 Replies
View Related
Feb 11, 2011
I'm searching for a tutorial on how to convert my videos (AVI, WMV and MKV formats) to a format that offers both good quality and small size.The audio part should be 128 kbit/s mp3 lame.I'm using Fedora 14 with an rpmfusion repo. It would be especially nice to be able to batch-convert the AVIs.
View 1 Replies
View Related
Jul 20, 2011
I would like to find the command that copy my eclipse options to another workspace code...
It doesn't work, and it could be source of error to write the path .metadata/.plugins manually. It certainly a better idea to create a complete script ?
View 1 Replies
View Related
Feb 23, 2011
I would like to remove almost all of the Privacy Evading data that a digital camera is generating, such as EXIF DATA. EXIF DATA: Camera Brand, Camera Model, Date taken, Exposure Time, Flash Fired, Focal Length, Location (if you are using iPhone with categorization by location, if enabled), Metering Mode, etc.
May you, please, write a script which does that job for multiple files?Exiv2 seem to reduce more weight than Jhead so I'll use the command exiv2.That's, generally, what I want the script to do:Retrieve the (Modified) date of a file.
View 3 Replies
View Related
Aug 9, 2010
So I have a bunch of directories:
dir1
dir2
dir3
etc.
which themselves all contain subdirectories:
dir1subdir1subdir2etc.and at the lowest level they contain all of these jpegs that I need. The problem is that I only need some of them. They're named like this:
pic1.jpg
pic1_med.jpg
pic1_small.jpg
pic2.jpg
pic2_med.jpg
etc.
I want to just grab the ones without the size suffix and copy them all to another set of folders, while preserving the directory structure. The numbering all starts at 1 for each low level subdirectory, so I think that the directory structure is the only way to not get them mixed up.
I know that cp has a recursive option -r but how do I just extract the ones without the underscore? And then how do I preserve the directory structure when I move them over?
View 1 Replies
View Related
Jun 25, 2011
I do have a log file where each line start with a timestamp:
"2011-04-30 23:58",....
"2011-04-30 23:59",....
My question is how I can alter this timestamp to e.g subtract 6 hours by using a bash script.
View 5 Replies
View Related
Jan 3, 2011
1) is it possible to have dmesg output (syslog) with timestamps for each occurrence of the boot log?
2) where to find documentation/advice about which kernel functions yield each occurrence?
View 1 Replies
View Related
Mar 2, 2010
[URL]
encfs: preserve timestamps on a shared encrypted folder?
View 1 Replies
View Related
May 1, 2010
currently my installation is on sda1, while /home is on sdb1. I'd like to wipe sda1 and reinstall Ubuntu 10.04 from scratch.
Can I just run the 10.04 installer, reformat sda1, install 10.04 over it, then follow a guide to remount sdb1 to /home (and chown the new /home)?
View 4 Replies
View Related
Jan 8, 2010
Using "List View" in Nautilus (Ubuntu 9.10), is there a way to preserve the column width? If I manually change the column width and click into another folder, the width automatically reverts to the old width when I return.
View 4 Replies
View Related
Oct 3, 2010
I disliked LXDE's pcmanfm so much that I've switched over to feh and idesk but for the life of me I can't get feh's wallpaper setting to stay between sessions. Typing 'feh --bg-scale /usr/share/lxde/wallpapers/lxde_blue.jpg' immediately gives me what I want, but next login it's gone again. I know I have to put an entry in ~/home/pargoo/.config/openbox/autostart.sh but nothing works. So far I've tried:
eval `cat $HOME/.fehbg` &
eval `cat $HOME/pargoo/.fehbg` &
eval `cat ~/.fehbg` &
[Code].....
View 7 Replies
View Related
Sep 27, 2014
I'm going to move from Linux Mint (Debian Edition) to Debian on my Laptop (3 user). The current setup is LMDE-Cinnamon, with 4 partitions; /, swap, home and data. All the important data lives in data while home is used for preferences only.
Am I right in thinking that preserving the data partition is as simple as not formatting it during the installation?
And what about home? Obviously this now contains a lot of irrelevant stuff (Cinnamon settings for example) and many programs will be in different versions...
- Just keep it (after all the irrelevant stuff should not do anything bad?)? And if so how do I tell the installer to do this?
- Format and restore the relevant preferences manually from the backup?
- Format and have everybody set up their preferences as needed?
View 7 Replies
View Related
Mar 7, 2010
I installed Mythbuntu, got some Wine apps up and running, then discovered my Nvidia DualTV MCE won't work with Myth. So I'd like to try a different variant, either the plain vanilla Ubuntu or UbuntuStudio.Can I just use Mythbuntu to create a new partition, move /home/* to it, and then reformat and install over the original Mythbuntu partition? When I reinstall the new version, how do I tell the installation process to use /home on the other partition (without overwriting it) instead of creating a new one from scratch?
View 4 Replies
View Related
Sep 14, 2010
I've set up a multiboot with XP, Vista, Windows 7, and Ubuntu 10.04.1, installed in that order in five individual partitions on a single hard drive (fifth is for the Ubuntu swap area). Everything is working well: On boot, the GRUB menu comes up first, with the usual Ubuntu choices and "Windows 7 (loader)". When I select that last option, I'm then given the Windows boot menu that allows "Earlier Version of Windows", "Windows 7", and "Microsoft Windows Vista". They all boot properly, and I don't mind having to use the second menu. I would like to reinstall XP (only) to the same partition it now occupies. I suspect this will mess up my current booting scheme, correct? Is there a way I can prevent this, by saving the GRUB configuration or whatever?
View 3 Replies
View Related
Sep 19, 2010
I have two partitions: one for / and the other for /home ; now how do I reinstall ubuntu in the '/' partition so that I can reuse /home as it is?
View 2 Replies
View Related
Mar 15, 2011
I am switching to Ubuntu soon for security purposes. I have 3 hard drives, one with my OS, one with nothing, and one with all my junk. I was wondering if there is anyway that I can only reformat and install Ubuntu onto the drive with windows, reformat the empty drive, and then transfer files from my junk drive onto the empty drive, and then format the junk drive and move all of the files back onto the junk drive? Or is the junk drive accessible from Ubuntu and not worth trying to switch formats on?
View 6 Replies
View Related
Jul 20, 2011
I am going through the motions of migrating from Rhythmbox to Banshee so that I can field questions about the process as Banshee takes over for Rhythmbox in Ubuntu. I have solved a silly issue about importing playlists (they must be imported from /home/username/ or you must alter the paths in each entry). But there is another issue which I am at a loss to explain.
My playlists are like mixed tapes. They are in a specific order. When I import a playlist into Banshee that order is not preserved. I have checked the files and they are definitely ordered and numbered in the playlists just as they are in Rhythmbox, but Banshee refuses to import them with the order respected regardless of the smallness of the list.
What's going on and how can I correct this?
I'd rather not have to reconstruct all of these playlists.
View 1 Replies
View Related
Jan 13, 2011
My Debian Squeeze server that I'm trying to make a LAMP server is currently a LAM server. I get these errors when trying to install php5:
[Code]....
View 4 Replies
View Related
Mar 23, 2010
I prefer to do a clean install of each new version of Ubuntu.I do have a separate /home partition which I preserve during each new install. I also have many additional packages installed.My question is:How do I preserve the list of installed additional software so that I may readily reinstall all of it after each upgrade?
View 9 Replies
View Related
Jun 8, 2010
It seems to be simple one, but couldn't figure out exactly. Say I copy a file preserving its original modification time using the command
Code:
cp -p file1 file2
Now later, I want to know when file2 was copied... How do I find it ?
View 1 Replies
View Related
Sep 29, 2010
I'd like to reinstall openSUSE 11.3 on a pc and would like to preserve the /home partition. The current partiton structure is
sda1 /boot
sda2 /swap
sda3 /extended partition
sda4 /
sda5 /home
When the installer gets to the point to set up the partitions it offers something like
sda1 /
sda2 /swap
sda3 /home
I'm not sure which option to take now. I assume I choose the option to edit the partitions but I'm not clear how to preserve the /home as it's now got a different partition number or does that no matter as long as I choose not to format it? Also, to replicate the original partition structure I'd need to delete the partitions and add them in the correct order but would that destroy the /home?I'm a bit confused with how it will work.
View 2 Replies
View Related
Oct 26, 2010
I am currently in the process of moving around 20TB of data from one server to another. Security is not a concern, since the data are freely available to anyone on our network anyway. There are a couple of things that I'm trying to decide on:
(1) protocol choice
Of all the choices I have--nfs, ftp, scp, rsync, samba--has anyone done any benchmarking to show which would be the fastest/most robust transfer protocol? I know nfs has slow write speeds for synchronous transfers. Asynchronous would be faster, but less robust. I'm leaning toward rsync since it performs md5sums to confirm the file transfers. (Remember if there's a 1 in a billion chance that a byte will get corrupted, then I'll have 20,000 corrupt bytes in the transfer.)
(2) Nautilus emblems
We use emblems in Nautilus to categorize files. The old and the new server have the same directory structure.Is there any way to copy the Nautilus emblems from the old server to the new server. What I want is that if a user had marked a particular file with a star on the old server, then that file would be marked with a star on the new server when he/she logs in.
View 1 Replies
View Related