Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default copy new files only #26

Open
retrosapien opened this issue Jan 28, 2021 · 8 comments
Open

default copy new files only #26

retrosapien opened this issue Jan 28, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@retrosapien
Copy link

retrosapien commented Jan 28, 2021

Is it possible to add an option to only update missing/incomplete files when copying? Or a dialog to skip or overwrite? I could be wrong, but i think currently it overwrites by default.
If it is easier to implement in webman mod's web/ftp server that could work to. [Edit] I just noticed the subtle /copy_ps3 vs copy.ps3 command difference.

;tldr
Backing up my files in preparation for a new hdd has been driving me crazy.
I tried using a lexar 128gb usb 3 flash drive formatted to ntfs. I didn't want to use fat32, as i wasn't sure if i would need to transfer files greater than 4gb. Anyway, half way through the transfer i was getting an error. i tried to re-copy the same set of files, because i didn't know where it left off, as there were missing directories in random spots in the list, not just at the end. I think the program does a check for disc space before transferring, as it gave an error. (if it was copying to a new location, there wouldn't be enough space, but if only updating missing files it would have been fine.) So i tried to go one folder at a time, which was very time consuming, until i got another error about permissions i think. I powered down and used chkdsk /r on the flash drive on my laptop. (corrupted index i think)

@aldostools aldostools added the enhancement New feature or request label Jan 30, 2021
@aldostools
Copy link
Owner

aldostools commented Jan 30, 2021

Feature was added to the latest commit.

Download the latest PKG again.

@retrosapien
Copy link
Author

retrosapien commented Feb 2, 2021

Re-Downloaded and installed latest package, but I didn't see anything different with the copy feature.

Is there a setting I need to enable? Or rebuild database maybe?

EDIT;
It is definitely overwriting and NOT updating files. I just checked the file dates over ftp. All the folders have the date 2021-01-25, and all the files have the date 2021-02-02(which is tomorrow's date, strangely enough)

TL;DR
There is one difference I'm noticing. I just backed up my HDD home folder over my old USB (fat32 this time) home folder. It says 100% on both progress bars, but the bottom one is stuck on a PARAM.SFO file, and the end of the green bar keeps flickering back and forth from almost done to done. Can't tell if it is the same files or multiple files, named the same.

EDIT; it must have been multiple instances of the same named file. It briefly changed to a different filename. I imagine the system must have a hell of a lot of param.sfo files. ;-)
Maybe the progress page could show the path, too? Or not show 100% when it's not finished. ;-)
Still better than a windows progress dialog. Lol
I think if it was just updating the files, it should be done by now.
Maybe a file count fraction might be a better progress indicator? Something like 100 / 1000 files copied, or left to copy? Or just show the numbers. Nothing to translate then.

EDIT; it finally finished. So I ran it again to see if it was updating or overwriting. Hard to tell with the current progress bar. Almost immediately, it said 100%, top and bottom. Maybe it is updating, but iterating all the file s to check for dates and file size?
Maybe you could explain better what is happening in the background. Because to the untrained, impatient eye, the transfer appears finished. Probably because of all the param.sfo files.

@aldostools
Copy link
Owner

aldostools commented Feb 2, 2021

In the menu of the File Manager you will see a Copy option. If you press LEFT/RIGHT the option changes to Shadow Copy, Update/Copy or Zip Folder.

If you select Update/Copy, it performs the same actions as the Copy option, except that it compare the file size of the source and target files. If the file size is the same, the copy is ignored and continue with the next file. If the file in target path does not exist or has a different file size, the copy is performed.

The Shadow Copy works only when you copy files between folders in HDD0. Instead of copy the file (read source file & write to the target path), the source file is linked in the target path.

@retrosapien
Copy link
Author

retrosapien commented Feb 2, 2021 via email

@aldostools
Copy link
Owner

Permissions are 0777 (read write execute).

I love to add hidden features as easter eggs ;-)

LOL I didn't remember there was a Copy/Paste... I barely touch IRISMAN, since my main project is webMAN MOD.

About a way to keep the original time stamp, there should be a way changing the file date/time after copy, but that would be extra coding and extra processing time.

@retrosapien
Copy link
Author

retrosapien commented Feb 3, 2021 via email

@aldostools
Copy link
Owner

Some files are created with read-only permissions. The fix let read/write.
The permissions are read using cellFsStat (FTP should show the permissions). They are changed with cellFsChMod.
These are commands of the SDK.

Shadow copy uses symbolic links to create a copy of the file. That is 2 or more directory entries pointing to the same inodes (disk sectors containing the file data). This is faster because there is not data copied, only the directory entries.
It only works when copying from one folder to another in HDD0.

The developer of HEN was Habib from Rebug Team. He based it on the exploit developed by bguerville.
IIRC The HEN Toolbox was created by DeViL303.

AFAIK it is not possible to clone a HDD. You need to copy the files to a backup media, then restore in the new HDD.

@retrosapien
Copy link
Author

retrosapien commented Feb 3, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants